🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)38 / 150
Question 38 of 150

You are writing Terraform configuration that provisions an AWS EC2 instance which must be attached to a specific subnet. The subnet is created in the same configuration as an aws_subnet resource. You want Terraform to always create the subnet before the instance without adding any extra meta-arguments. What is the recommended way to achieve this ordering?

Reviewed for accuracy · Report an issueNext question