Question 300
A module accepts an account identifier that must match an approved naming format before any deployment. Which action most directly satisfies the requirement in this situation?
Explanation
Correct Answer
Custom variable validation rejects unacceptable inputs close to the module boundary. An invalid account ID fails validation before resources are applied.
Incorrect Answers
Cross-resource references remain dynamic as managed resource values evolve. Use an input variable validation condition with a meaningful error message.
A sensitive output flag controls presentation but does not guarantee absence from state. Custom variable validation rejects unacceptable inputs close to the module boundary.
Built-in functions process values within Terraform expressions. An invalid account ID fails validation before resources are applied.