Open kzw opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @kzw 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to look into this, can you supply a sample Terraform configuration that can be used to reproduce this, and debug logs (redacted as needed)?
@justinretzolk I updated the original description. Please let me know if you need anything else
Similar problem with this public bucket elasticbeanstalk-platform-assets-<region>
; it is retrieving the necessary object via s3:get instead of http get
Terraform Core Version
1.5.5
AWS Provider Version
5.10.0
Affected Resource(s)
When running terraform plan in our ci/cd pipeline which has been restricted with minimum set of permission, we get an error of the following form
This object
eb_patching_resources/instance_patch_extension.linux
is publicly retrievable with http protocol and the bucketelasticbeanstalk-env-resources-us-east-1
belongs to AWS not to any AWS customers.I had to add s3 GetObject permission to ci/cd pipeline to get around this permission problem.
Please use http protocol to get this object not s3 api. It's possible that this is the problem with the AWS SDK you are using.
Expected Behavior
No error without any s3 GetObject to the public bucket
elasticbeanstalk-env-resources-us-east-1
Actual Behavior
Error as described above
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None