Skip to content

Commit

Permalink
CPD-885 Grant access to S3 artifacts created in other accounts.
Browse files Browse the repository at this point in the history
Previously, files uploaded by other accounts were not accessible by the bucket owner.

For example, if we created deployments in our "production" account, they were unreadable in our "development" account.
  • Loading branch information
glennpratt committed Jul 6, 2016
1 parent 0e38fe0 commit fc3b144
Showing 1 changed file with 1 addition 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

0 comments on commit fc3b144

Please sign in to comment.