Skip to content

Commit

Permalink
Merge pull request #108 from glennpratt/CPD-885-s3-acl
Browse files Browse the repository at this point in the history
CPD-885 Grant access to S3 artifacts created in other accounts.
  • Loading branch information
askreet committed Jul 7, 2016
2 parents 1397919 + fc3b144 commit 916dc42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/moonshot/artifact_repository/s3_bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def filename_for_version(version_name)

def upload_to_s3(file, key)
s3_client.put_object(
acl: 'bucket-owner-full-control',
key: key,
body: File.open(file),
bucket: @bucket_name,
Expand Down
3 changes: 3 additions & 0 deletions moonshot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Gem::Specification.new do |s|
s.add_dependency('interactive-logger', '~> 0.1.1')
s.add_dependency('rotp', '~> 2.1.1')
s.add_dependency('ruby-duration', '~> 3.2.3')
# Pin back activesupport (ruby-duration dependency) until we only support
# Ruby >= 2.2.2.
s.add_dependency('activesupport', '< 5.0.0')
s.add_dependency('thor', '~> 0.19.1')
s.add_dependency('semantic')
s.add_dependency('vandamme')
Expand Down

0 comments on commit 916dc42

Please sign in to comment.