Skip to content

ValidateConfig method does not work when call terraform validate #820

@Rabongg

Description

@Rabongg
  • terraform version: 1.11.4

I'm developing a resource provider. According to the docs, the validateConfig method is supposed to be called when running terraform validate, terraform plan, and terraform apply. However, when I run these commands, I find that validateConfig is called when running terraform plan, but not when running terraform validate. Could you please help me determine if I've misconfigured something or if the documentation is incorrect?

result of terraform validate

$>terraform validate 
Success! The configuration is valid.

result of terraform plan

Planning failed. Terraform encountered an error while generating this plan.

-> and following errror was error in validateConfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions