Skip to content

terraform module uses deprecated provider block #17443

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

Open
dannysauer opened this issue Apr 24, 2025 · 0 comments · May be fixed by #17445
Open

terraform module uses deprecated provider block #17443

dannysauer opened this issue Apr 24, 2025 · 0 comments · May be fixed by #17445

Comments

@dannysauer
Copy link

The provider block here is deprecated:

provider "aws" {
region = var.region
}

Using this structure stops someone from using the module with loop and depends_on meta arguments which are awfully handy in versions of Terraform post 0.15.0 (and all versions of OpenTofu). 🗡

The "right" way for someone to specify an alternate region now is to create a provider alias in the root module, and then pass that regioned provider into the the module using a providers block.

@dannysauer dannysauer linked a pull request Apr 24, 2025 that will close this issue
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant