You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?
terraform validate confirms that your infrastructure matches the Terraform state file.
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?