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

amplify push dry run? #366

Closed
hisham opened this issue Oct 28, 2018 · 6 comments
Closed

amplify push dry run? #366

hisham opened this issue Oct 28, 2018 · 6 comments
Labels
feature-request Request a new feature platform Issues tied to the general CLI platform

Comments

@hisham
Copy link
Contributor

hisham commented Oct 28, 2018

** Which Category is your question related to? **
deployment for all categories

Is there a way to do a dry run of 'amplify push' to see what changes it would make without actually doing anything? I understand CloudFormation supports something like this through change sets. Does amplify expose this somehow?

@UnleashedMind
Copy link
Contributor

amplify status will list what categories will be added / updated / deleted, but currently the cli does not provide push dry run.

@UnleashedMind UnleashedMind added the feature-request Request a new feature label Oct 29, 2018
@kaustavghosh06
Copy link
Contributor

@hisham What other information do you think would be valuable to you before pushing local configurations to the cloud?
The amplify status command does provide an overview of whats getting created/updated/deleted with your next push but would like to know better about the specific needs.

@hisham
Copy link
Contributor Author

hisham commented Nov 5, 2018

  1. For Auth, the most important thing is right now there is risk of cloudformation deleting and recreating userpool if you want to change certain attributes, so for safety purposes, I want to know if cloudformation is going to attempt to do that as we definitely don't want to delete our userpool accidentally. Currently all amplify status would show in this case is 'Update'.

  2. For GraphQL API, what dynamodb tables will be created/deleted and what indices will be created. Again, we wouldn't want to accidentally delete a dynamodb table even if we remove a @model from the graphql schema. Again I believe amplify status only shows 'Update' in this case.

So maybe something more granular than general "Update", especially if any deletes are going to happen. I also read a bit that on dynamo tables we can put a 'retain' setting so that cloudformation does not delete these even if it wants to, but I have not looked into that closely yet.

I have not played with aws cdk yet but it seems from their demo that they do offer a 'cdk diff' functionality which gives you a granular view of what's going to happen:

aws-cdk the aws cloud development kit is a framework for defining cloud infrastructure in code 2018-11-05 13-22-50

Something like this would be nice for learning purposes, but the most important thing I think is what resources are going to be deleted by amplify (especially dyanamo tables and userpools).

@kaustavghosh06 kaustavghosh06 added the platform Issues tied to the general CLI platform label Mar 11, 2020
@Bec-k
Copy link

Bec-k commented Jul 15, 2020

Same here, would like to know if some resource will be deleted and re-created...

@renebrandel
Copy link
Contributor

Hi @hisham @denissabramovs - we've now launched the ability to use amplify status -v to give you a "cdk diff"-like experience. It'll indicate every single resource change. LMK if this is addresses your concern. If not, @mention me, and let's discuss further!

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request a new feature platform Issues tied to the general CLI platform
Projects
None yet
Development

No branches or pull requests

5 participants