aws / opsworks-cookbooks

Chef Cookbooks for the AWS OpsWorks Service
Other
1.06k stars 1.23k forks source link

Problem with S3 and region #432

Closed winehook closed 4 years ago

winehook commented 5 years ago

Ever since the commit linked to below, we can't deploy our Ruby Layer in OpsWorks using the latest version of the OpsWorks Agent. If we pin our OW Agent to the version from May, it works.

https://github.com/aws/opsworks-cookbooks/commit/c9764844bb257cd40c89bbf6bc0a7c5da031a629#commitcomment-35040251

As you'll see in my comments, it appears to have something to do with how S3 URLs are referred to, and missing some kind of region value? The full error message is posted in my comment. Can you tell me where I need to add that region value?

winehook commented 4 years ago

Or is it that I'm running a version of the s3_file that does not contain the region method? Any ideas?

winehook commented 4 years ago

Figured it out -- we had a version of s3_file in our own cookbook that was getting executed instead of the new updated version in the OpsWorks repo. Removing that from our own cookbook eliminated the issue. Thanks.