You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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:
aws/opsworks-cookbooks@c976484#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.
The text was updated successfully, but these errors were encountered: