QuestionQ98
Core Terraform workflowAfter you create a new Terraform configuration, it passes terraform validate but returns an “Access Denied” error from the cloud provider when you run terraform plan.
Why did validate not detect this problem?
- A The working directory was not initialized, so the cloud provider plugin wasn’t available to use when running the terraform validate command.
- B The remote backend wasn’t configured, so terraform validate couldn’t load the state and detect the missing credentials.
- C terraform validate only checks if a configuration is syntactically correct and internally consistent, and does not communicate with providers.
- D Variables are only applied and validated during a terraform plan, so validate assumed defaults and returned the success message.
Community Discussion