Question 250
Two provider resources must be ordered because one reads the name generated by the other during apply. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Use a direct resource attribute reference in the dependent configuration. The plan graph shows the dependent resource waiting on the referenced value.
Incorrect Answers
Declare an input variable with a default and override it for production via supported variable assignment. Use a direct resource attribute reference in the dependent configuration.
Use a lifecycle create_before_destroy rule after checking platform and naming constraints. Attribute references create implicit dependencies when one resource's result is needed.
Use sensitive markings for redaction but separately secure state and plan artifacts and prefer ephemeral handling where applicable. Use a direct resource attribute reference in the dependent configuration.