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

Redundant empty provider block #22

Open
sbkg0002 opened this issue Mar 7, 2025 · 2 comments
Open

Redundant empty provider block #22

sbkg0002 opened this issue Mar 7, 2025 · 2 comments

Comments

@sbkg0002
Copy link

sbkg0002 commented Mar 7, 2025

Hi,

The setup of the required provider configuration is deprecated.

╷
│ Warning: Redundant empty provider block
│ 
│   on .terraform/modules/rubrik_aws_cloud_cluster/providers.tf line 19:
│   19: provider "polaris" {}
│ 
│ Earlier versions of Terraform used empty provider blocks ("proxy provider configurations") for child modules to declare their need to be passed a provider configuration by their callers.
│ That approach was ambiguous and is now deprecated.
│ 
│ If you control this module, you can migrate to the new declaration syntax by removing all of the empty provider "polaris" blocks and then adding or updating an entry like the following
│ to the required_providers block of module.rubrik_aws_cloud_cluster:
│     polaris = {
│       source = "rubrikinc/polaris"
│     }
│ 
@johan3141592
Copy link
Member

Hi @sbkg0002! I've not seen this warning before, do you use the Terraform module independently or as a sub module in a larger Terraform configuration?

@sbkg0002
Copy link
Author

Hi @johan3141592 I use it as a module 😄 So it's part of a larger Terraform configuration.

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

2 participants