Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suddenly getting error with regions? #120

Open
winehook opened this issue Aug 27, 2019 · 1 comment
Open

Suddenly getting error with regions? #120

winehook opened this issue Aug 27, 2019 · 1 comment

Comments

@winehook
Copy link

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.

@wilkosz
Copy link
Contributor

wilkosz commented Apr 23, 2020

This could also fix: #122
I saw that region wasn't hooked up in current build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants