-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) boto3 sam deploy #1323
(feat) boto3 sam deploy #1323
Conversation
change_set_id = response.get("Id") | ||
changes = generate_stack_changes(client, change_set_id, stack_name) | ||
|
||
if len(changes.get("Add") + changes.get("Modify") + changes.get("Remove")) == 0 and fail_on_empty_changset: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need better control flow than just a continuous if statement checks.
) | ||
|
||
except ClientError as e: | ||
if "AccessDeniedException" in e.response["Error"]["Message"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no specific exception that we can catch? why are we looking at a specific class of Exception within a string message?
@@ -35,19 +37,197 @@ | |||
help="The name of the AWS CloudFormation stack you're deploying to. " | |||
"If you specify an existing stack, the command updates the stack. " | |||
"If you specify a new stack, the command creates it.") | |||
@click.option('--s3-bucket', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this help text information comes directly from aws cli?
Thanks for taking a look at this, breaking the dependency of directly shelling out, will help innovate in this space faster :) |
Going to close this in favor of #1455 |
Issue #, if available:
Description of changes:
Adds support for using boto3 with sam deploy. This allows for better ux, allowing us to describe events locally, and other features down the road.
Design doc: #1324
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.