Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

viksrivat
Copy link
Contributor

@viksrivat viksrivat commented Aug 8, 2019

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:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@viksrivat viksrivat mentioned this pull request Aug 8, 2019
6 tasks
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:
Copy link
Contributor

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"]:
Copy link
Contributor

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',
Copy link
Contributor

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?

@sriram-mv
Copy link
Contributor

Thanks for taking a look at this, breaking the dependency of directly shelling out, will help innovate in this space faster :)

@jfuss
Copy link
Contributor

jfuss commented Oct 18, 2019

Going to close this in favor of #1455

@jfuss jfuss closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants