terraform-aws-elastic-beanstalk-environment icon indicating copy to clipboard operation
terraform-aws-elastic-beanstalk-environment copied to clipboard

module throws errors when using with aws 4.0 provider

Open andylamp opened this issue 3 years ago • 1 comments

Found a bug? Maybe our Slack Community can help.

Slack Community

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:

  1. Try to use aws provider version >= 4.0.0
  2. Try to run terraform validate on the configuration and various errors pop up, which seem to be s3 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.

andylamp avatar Feb 11 '22 12:02 andylamp

https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/pull/209

benmotyka avatar Apr 05 '22 16:04 benmotyka