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

Empty provider warning #155

Closed
art049 opened this issue Jul 5, 2021 · 2 comments · Fixed by #219
Closed

Empty provider warning #155

art049 opened this issue Jul 5, 2021 · 2 comments · Fixed by #219
Labels
enhancement feature/terraform Missing feature from Terraform
Milestone

Comments

@art049
Copy link

art049 commented Jul 5, 2021

Hi, I'm currently having a warning while running terraform apply/plan/delete.

Not sure it's a big deal but here is the bug report:

│ Warning: Empty provider configuration blocks are not required
│ 
│   on .terraform/modules/tf_next/provider.tf line 2:
│    2: provider "aws" {
│ 
│ Remove the aws.global_region provider block from module.tf_next. Add aws.global_region to the list of configuration_aliases for aws in required_providers to define the
│ provider configuration name.

Terraform version: v0.15.4 on linux_amd64
Terraform module version: 9.0.1
tf-next npm version: 0.7.0

I'd be happy to help on this if it's needed 😄

@ofhouse
Copy link
Member

ofhouse commented Jul 5, 2021

Hi, thanks for the report.

Yes, I am aware of this warning.
It is raised by the way we forward the aws global provider internally to the module that handles the CloudFront distribution.

Terraform v0.15 introduced a new way (configuration_aliases) to handle this and raises a deprecation warning when it detects a usage of the former syntax.

Fixing this would mean that we need to increase the minimum Terraform version for this module from v0.13 to v0.15 since the new syntax is not supported in older versions.

Given that v0.15 was released in April I would wait at least until October (~6 months) to make this step to give users enough time to upgrade to a newer Terraform release fist.

@ofhouse ofhouse added enhancement feature/terraform Missing feature from Terraform labels Jul 5, 2021
@ofhouse ofhouse added this to the v0.10.0 milestone Oct 3, 2021
@ofhouse
Copy link
Member

ofhouse commented Oct 16, 2021

This has now been fixed in v0.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature/terraform Missing feature from Terraform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants