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

Support for AWS module 4.0+ #57

Open
phillipuniverse opened this issue Feb 12, 2022 · 4 comments
Open

Support for AWS module 4.0+ #57

phillipuniverse opened this issue Feb 12, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@phillipuniverse
Copy link

phillipuniverse commented Feb 12, 2022

Current Version

0.6.0

Use-cases

Wanting to use version 4 of the AWS terraform module but cannot because of the hard < 4.0 version requirement

required_providers {
aws = ">= 2.51, < 4.0"
}

╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints >= 2.51.0, ~> 4.0, < 4.0.0
╵

Attempted Solutions

Attempted upgraded to AWS module 4.0

Proposal

Add support for version 4 of the AWS module. The biggest changes are making some properties readonly in the 4.0 version, for instance cors_rule.

References

AWS 4.0 release notes

@phillipuniverse phillipuniverse added the enhancement New feature or request label Feb 12, 2022
@mariux
Copy link
Member

mariux commented Feb 23, 2022

hi @phillipuniverse,

thank you for your request, the resource is a breaking change in the new provider version and needs a complete refactoring.

We will schedule an update asap.

@phillipuniverse
Copy link
Author

@mariux i figured, it looked pretty impactful to this plugin.

Thanks for putting this on your backlog!

@Limess
Copy link

Limess commented May 4, 2022

It looks like this module would now be supported in its current form by Terraform >=4.9.x hashicorp/terraform-provider-aws#23106 (comment) with breaking changes not necessary until 5.x.x.

treksler added a commit to treksler/terraform-aws-s3-bucket that referenced this issue Oct 5, 2022
@Limess
Copy link

Limess commented Oct 6, 2022

So this is definitely supported by 4.9, however removing attributes from the bucket won't be detected (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#changes-to-s3-bucket-drift-detection):

Thus, if one of these parameters was once configured and then is entirely removed from an aws_s3_bucket resource configuration, Terraform will not pick up on these changes on a subsequent terraform plan or terraform apply.

As such it looks like this module should make the breaking changes and break semver versioning, dropping support for providers earlier than 4.9.

mariux pushed a commit that referenced this issue Oct 6, 2022
Adds Support for AWS module 4.9+ #57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants