Create VPC using .tf
Here we will create a VPC using terraform. We will add following line of code in main.tf file
Run
Now we will see the following ouput after we terraform apply
Final step is to check in our AWS console page: Go to aws.console.amazon and go to VPC you will see the new VPC that we create from terraform apply
Last updated