terraform-aws-elastic-beanstalk-environment
terraform-aws-elastic-beanstalk-environment copied to clipboard
module throws errors when using with aws 4.0 provider
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Various s3 bucket-related errors are thrown when trying to use this module (using the predefined s3 policies). As far as I understand this is due to the refactor that occurred during the major aws
provider version release 4.0.0
which happened yesterday (see here and here).
Obviously, the error goes away if we use any aws
provider version less than 4.0.0
. However, I think it is worth pointing out in order to plan a fix.
Expected Behavior
Terraform validate
to pass without any obvious issues.
Steps to Reproduce
Steps to reproduce the behavior:
- Try to use
aws
provider version>= 4.0.0
- Try to run
terraform validate
on the configuration and various errors pop up, which seem to bes3
related.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- OS: Linux Ubuntu 21.10 with all the latest paches.
- Version:
0.46.0
- Terraform environment:
andylamp@mezedaki $ tf version
Terraform v1.1.5
on linux_amd64
+ provider registry.terraform.io/cloudposse/awsutils v0.11.0
+ provider registry.terraform.io/hashicorp/aws v4.0.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0
+ provider registry.terraform.io/hashicorp/tls v3.1.0
Additional Context
Nothing.
https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/pull/209