Question 560
A temporary test service is explicitly owned by the current Terraform workspace and must be destroyed with the workspace. Which action most directly satisfies the requirement in this situation?
Explanation
Correct Answer
Terraform-managed resources participate in create, update, and destroy lifecycle decisions. The service appears as a managed state address and is included in a reviewed teardown plan.
Incorrect Answers
Input variables are a module's parameter interface. The service appears as a managed state address and is included in a reviewed teardown plan.
A set models unique elements without relying on positional order. Use a managed resource block for the test service.
Terraform infers dependencies from expression references when possible. Terraform-managed resources participate in create, update, and destroy lifecycle decisions.