-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 terraform-provider-aws 4.x #137
Comments
also faced with this problem: |
They pulled stuff like logging and lifecycle rule out of the bucket resource into separate resources. That's why it's the values are unconfigurable. |
People will eventually want to use version 4.x of the provider. |
Thanks for opening this issue. We are well aware of version 4.x and we will work on the support in the coming weeks. |
For the time being, please use version 2.14.1 of this module where Terraform AWS provider version is locked to |
how do you force the use of a previous version of a module? |
I've set the provider version as follows:
...and I have set the S3 module as follows:
But am still getting the error:
|
You have other modules in this configuration that require |
ah ok thanks anton, so shall I force those other modules to use an older version? (they're the EC2 modules) |
Yes, I think it would be easier than trying to use both version 3 and version 4 together in the same project as described here. Version 3 could be installed under another terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.69"
configuration_aliases = [ aws.ancient ]
}
}
}
provider "aws" {
alias = "ancient"
region = "us-west-2"
}
module "s3_playbooks" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "2.14.1"
providers = {
aws = aws.ancient
}
} |
I am using aws = { version = "~> 3.69" } Terraform_version = ">= 0.14"Getting these warnings - |
Hello, can we get an update please on the status of this? I would very much like to upgrade to provider version 4 |
This issue has been resolved in version 3.0.0 🎉 |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Is your request related to a new offering from AWS?
No
Is your request related to a problem? Please describe.
https://github.com/hashicorp/terraform-provider-aws 4.0.0 has breaking changes for the S3 bucket resource, see https://github.com/hashicorp/terraform-provider-aws/releases/tag/v4.0.0, which break this module (e. g.: lifecycle configuration must no be specified as separate resource)
Describe the solution you'd like.
This module should work with https://github.com/hashicorp/terraform-provider-aws 4.x.x
Describe alternatives you've considered.
We could abandon use of this module, but really don't want to ;)
Additional context
N/A
The text was updated successfully, but these errors were encountered: