s3_file
s3_file copied to clipboard
Suddenly getting error with regions?
Hello -- very sorry to bother you, but we just discovered that we're getting errors on builds due to some kind of new region method that's getting called by the AWS opsworks s3.rb recipe. Here's the commit that appears to have started the problem:
https://github.com/aws/opsworks-cookbooks/commit/c9764844bb257cd40c89bbf6bc0a7c5da031a629#diff-badcc3a804dc9e09f9b8993943e1b60c
The error we're getting is:
NoMethodError
undefined method `region' for Chef::Resource::S3File
Here's the specific code:
Relevant File Content:
/var/lib/aws/opsworks/cache.stage2/cookbooks/scm_helper/libraries/s3.rb:
55: end
56:
57: s3_bucket, s3_key, base_url, s3_region = OpsWorks::SCM::S3.parse_uri(scm_options[:repository])
58:
59: s3_file "#{tmpdir}/archive" do
60: bucket s3_bucket
61: remote_path s3_key
62>> region s3_region
63: aws_access_key_id scm_options[:user]
64: aws_secret_access_key scm_options[:password]
65: owner "root"
66: group "root"
67: mode "0600"
68: s3_url base_url
69: action :create
70: end
71:
Is this a known issue we should be able to work around? I looked in issues here to see if there was anything to do with this, but couldn't find anything. If you can even guide me in any direction I'd much appreciate it -- our devOps guy left recently and I'm trying to work my way (not very successfully) through a lot of these kinds of things. Thanks very much.
This could also fix: https://github.com/adamsb6/s3_file/pull/122 I saw that region wasn't hooked up in current build