TF-004 Interact with Terraform modules • Set 2
TF-004 Interact with Terraform modules Practice Test 2 — 15 questions with explanations. Free, no signup.
A team has a root module that calls a local module using count to conditionally create an AWS RDS instance based on a boolean variable `rds_enabled`. The root module sets `rds_enabled` to the value of a data source that checks if a tag exists on an S3 bucket. The relevant code is: `count = var.rds_enabled ? 1 : 0`. When they run terraform plan, they receive the error: "Error: Invalid count argument: The count value is not yet known". The S3 bucket already exists. What is the underlying issue?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.