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

sam deploy in an asynchronous manner #2761

Open
naphtul opened this issue Mar 24, 2021 · 3 comments
Open

sam deploy in an asynchronous manner #2761

naphtul opened this issue Mar 24, 2021 · 3 comments
Labels
stage/pm-review Waiting for review by our Product Manager, please don't work on this yet type/feature Feature request

Comments

@naphtul
Copy link

naphtul commented Mar 24, 2021

Deploy in an Asynchronous manner

Currently when deploying a SAM template with a CodeDeploy configuration, the deployment process can take even 30 minutes or more, depending on the Strategy I choose (i.e. DeploymentPreference). I don't want my build or even a command line process to be "stuck" for this long.

Proposal

I am hoping to have a command line option for the sam deploy command (i.e. --async) and it would deploy the CloudFormation stack and not wait until it is done deploying all the stack resources. Something similar to the way aws cloudformation create-stack and aws cloudformation update-stack work. If I wish, I could implement a polling mechanism for the stack deployment status.

@moelasmar moelasmar added type/feature Feature request stage/pm-review Waiting for review by our Product Manager, please don't work on this yet labels Mar 25, 2021
@metaskills
Copy link
Contributor

I really really like this idea. I was just thinking the same thing. For example when using the Linear10PercentEvery1Minute with my CI/CD as Github Actions. It would be nice to not have to pay 10m for each deploy of action minutes. The better solution would be to build tooling around the GitHub Deployments (https://docs.github.com/en/rest/reference/repos#deployments) spec which fits nice with the async behavior and could report back on state. I've not thought thru everything yet, but that's the general idea.

➕1️⃣ (for async)

@metaskills
Copy link
Contributor

sam deploy --no-execute-changeset would also work (saving you having to figure out if you need to upload the template to s3 or but), but to be safe you'd need to extract the changeset id

https://twitter.com/benbridts/status/1403123466702921729

@hoffa
Copy link
Contributor

hoffa commented Sep 15, 2021

For the sake of completeness, in some situations a reasonable alternative is running the process in the background with sam deploy &.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/pm-review Waiting for review by our Product Manager, please don't work on this yet type/feature Feature request
Projects
None yet
Development

No branches or pull requests

4 participants