QuestionQ41Verified/Core Terraform workflowCopy linkReport a problemAsk AstroTutorSave questionWhich syntax check produces an error when you run terraform validate?ANone of these will return an error.BThere is a missing variable block.CThe state file does not match the current infrastructure.DThe code contains tabs for indentation instead of spaces.Show AnswerAnswerExplanationterraform validate detects configuration errors such as references to undeclared input variables, which result when the required variable block is missing. It validates configuration syntax and internal consistency without evaluating existing state; indentation using tabs is not itself a configuration error.Learn moreterraform validate command referenceWrite and modify Terraform configuration from the CLIShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion