Skip to content

Commit

Permalink
Merge branch 'release/2.1.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotaimen committed May 2, 2019
2 parents 3617136 + c0483c5 commit 5acc21b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 2.1.10 (2019-5-1)

Issues:
- Fixes package error after awscli `1.16.145`

## Version 2.1.9 (2019-3-14)

Hotfix
Expand Down
27 changes: 19 additions & 8 deletions awscfncli2/runner/runbook/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,25 @@ def package_template(ppt, session, template_path, bucket_region,
else:
raise e

s3_uploader = S3Uploader(
s3_client,
bucket_name,
bucket_region,
prefix,
kms_key_id,
force_upload=False
)
try:
s3_uploader = S3Uploader(
s3_client,
bucket_name,
bucket_region,
prefix,
kms_key_id,
force_upload=False
)
except TypeError:
# HACK: since awscli 1.16.145+ the bucket region parameter is removed
s3_uploader = S3Uploader(
s3_client,
bucket_name,
prefix,
kms_key_id,
force_upload=False
)


template = Template(template_path, os.getcwd(), s3_uploader,
resources_to_export=EXPORTS)
Expand Down
8 changes: 7 additions & 1 deletion samples/Simple/PyPiRelease/PyPiRelease.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Resources:
Action:
- sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSCloudFormationReadOnlyAccess
- arn:aws:iam::aws:policy/AdministratorAccess
Policies:
- PolicyName: CloudWatchLogsAccess
PolicyDocument:
Expand Down Expand Up @@ -346,6 +346,12 @@ Resources:
- echo Entered the build phase...
- cfn-cli --version
- cfn-cli -v -f samples/Simple/DynamoDB/cfn-cli.yml validate
- cfn-cli -v -f samples/Simple/DynamoDB/cfn-cli.yml -s Default.DDB stack deploy
- cfn-cli -v -f samples/Simple/DynamoDB/cfn-cli.yml -s Default.DDB stack delete -qi
- cfn-cli -v -f samples/SAM/api_backend -s Production.ApiBackend-Production stack sync
- cfn-cli -v -f samples/SAM/api_backend -s Production.ApiBackend-Production drift detect
- cfn-cli -v -f samples/SAM/api_backend -s Production.ApiBackend-Production drift diff
- cfn-cli -v -f samples/SAM/api_backend -s Production.ApiBackend-Production stack delete -qi
finally:
- echo Leaving build phase...
post_build:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
name='awscfncli2',

# Version and description
version='2.1.9',
version='2.1.10',
description='AWS CloudFormation CLI',
long_description=long_description,

Expand Down

0 comments on commit 5acc21b

Please sign in to comment.