diff --git a/samcli/lib/bootstrap/bootstrap.py b/samcli/lib/bootstrap/bootstrap.py index 9e53c2c91d..42df9df9eb 100644 --- a/samcli/lib/bootstrap/bootstrap.py +++ b/samcli/lib/bootstrap/bootstrap.py @@ -17,6 +17,7 @@ from samcli.cli.global_config import GlobalConfig from samcli.commands.exceptions import UserException, CredentialsError, RegionError + SAM_CLI_STACK_NAME = "aws-sam-cli-managed-default" LOG = logging.getLogger(__name__) @@ -142,9 +143,10 @@ def _get_stack_template(): Fn::Join: - "" - - - "arn:aws:s3:::" - - - !Ref SamCliSourceBucket + - "arn:" + - !Ref AWS::Partition + - ":s3:::" + - !Ref SamCliSourceBucket - "/*" Principal: Service: serverlessrepo.amazonaws.com