🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)50 / 150
Question 50 of 150
A developer is refactoring a Terraform configuration into a reusable child module for provisioning S3 buckets. Inside the root module, a variable named 'environment' is defined and used. When the developer references var.environment inside the child module's main.tf, Terraform reports an error that the variable is not declared. What is the correct way to make the parent's 'environment' value available to the child module?
Reviewed for accuracy · Report an issueNext question