From ccf885ccd56615c52161dd2046c6b2d41ec0e704 Mon Sep 17 00:00:00 2001 From: Daniel Miranda Date: Mon, 29 Oct 2018 21:26:57 -0300 Subject: [PATCH] Upload blueprint templates with bucket-owner-full-control ACL This way it's possible to use a shared stacker bucket from a master account in configs contain stacks with profiles of different child accounts. --- stacker/actions/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stacker/actions/base.py b/stacker/actions/base.py index 65ddebe4f..d567e82fc 100644 --- a/stacker/actions/base.py +++ b/stacker/actions/base.py @@ -189,7 +189,8 @@ def s3_stack_push(self, blueprint, force=False): self.s3_conn.put_object(Bucket=self.bucket_name, Key=key_name, Body=blueprint.rendered, - ServerSideEncryption='AES256') + ServerSideEncryption='AES256', + ACL='bucket-owner-full-control') logger.debug("Blueprint %s pushed to %s.", blueprint.name, template_url) return template_url