Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dav3r opened this issue Sep 27, 2021 · 0 comments

Comments

@dav3r
Copy link
Member

dav3r commented Sep 27, 2021

🐛 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant