-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
feat!: Bump Terraform AWS Provider version to 5.0 #941
feat!: Bump Terraform AWS Provider version to 5.0 #941
Conversation
The `vpc` attribute has been deprecated and starting with AWS Terraform Provider v5.0 this will report a deprecation warning. The new `domain` parameter has similar functionality while removing EC2-classic support.
@antonbabenko Thanks for the pull request adds. I just noticed the failures and was about to update similarly. Looks good, thanks! |
tested on https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/examples/complete - resulted in a no-op no upgrade required since there are no user facing changes - the breaking change is only due to the major change on the provider (v4.x to v5.0). |
This PR is included in version 5.0.0 🎉 |
Confirmed 5.0.0 works no deprecation warnings 🎉 |
Same! works fine for me. Thanks! |
Nice! @antonbabenko I assume the other modules need to be upgraded first to make this fully usable? |
@estahn All Terraform AWS modules are independent, and the provider's version can be upgraded if necessary. In many cases, we don't specify the maximum version of the provider, so it should work right away without any changes. Or what do you mean? :) |
@antonbabenko I might be missing something. I did the following:
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "5.0.0"
...
}
|
@estahn one of your dependencies has a pin that prevents v5.0 from being reached |
Right, I guess that would be this one: https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/blob/fa04ae1d361d81d1ea043b89e51ff1ff0bf8ceca/versions.tf#L7 It's showing The versions qualifier was changed from |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Use
domain
attribute instead of deprecatevpc
argumentThe
vpc
attribute has been deprecated and starting with AWS Terraform Provider v5.0 this will report a deprecation warning. The newdomain
parameter has similar functionality while removing EC2-classic support. This pull request fixes the deprecation warnings when using this provider with the Terraform AWS >= 5.0 provider.Motivation and Context
To fix deprecation warnings and provide consistency with AWS 5.x provider
Breaking Changes
The
domain
parameter for resourceaws_eip
is introduced with AWS terraform provider5.0
. Thus, this is a breaking change in that it requires consumers to have an updated AWS provider newer than the current pinned 4.35. However, we should be able to release a new major version to support 5.0. See the accompanying documentation updates.How Has This Been Tested?
Did not test fully yet. In the process of testing locally.