Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
acl option, default to public-read
Browse files Browse the repository at this point in the history
  • Loading branch information
margaret committed Jan 2, 2018
1 parent 424adff commit 33ff9fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dcos_launch/platforms/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ def get_auto_scaling_instances(self, asg_physical_resource_id):
AutoScalingGroupNames=[asg_physical_resource_id])
['AutoScalingGroups'] for i in asg['Instances']]

@retry_boto_rate_limits
def put_s3(self, bucket, keyname, file, acl='public-read'):
return self.resource('s3').Bucket(bucket_id).put_object(
Key=keyname,
Body=file,
ACL=acl)

@retry_boto_rate_limits
def empty_and_delete_bucket(self, bucket_id):
""" Buckets must be empty to be deleted. Additionally, there is no high-level
Expand Down

0 comments on commit 33ff9fe

Please sign in to comment.