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 Dec 19, 2017
1 parent 85d746e commit 0ba0642
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 @@ -240,6 +240,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 0ba0642

Please sign in to comment.