Skip to content

Unresolvable "Empty provider configuration blocks are not required" warnings from "terraform validate" #67

@dav3r

Description

@dav3r

🐛 Summary

While not present in this skeleton Terraform module, some descendant modules get terraform validate warnings about "Empty provider configuration blocks are not required". This started happening after we moved from Terraform 0.14.x to Terraform 1.0.x.

See hashicorp/terraform#28490 for more information about why this is happening and why we cannot do anything to fix it right now.

Any helpful log output or screenshots

This is an example of the terraform validate warning that comes up for cisagov/cool-assessment-terraform:

│ Warning: Empty provider configuration blocks are not required

│   on .terraform/modules/read_terraform_state/providers.tf line 2:
│    2: provider "aws" {

│ Remove the aws.users provider block from module.read_terraform_state. Add aws.users to the list of configuration_aliases for aws in required_providers to define the provider
│ configuration name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions