amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

show nested stack diff on `amplify status -v`

Open Wyfy0107 opened this issue 4 years ago • 3 comments

Is this feature request related to a new or existing Amplify category?

New category

Is this related to another service?

Cloudformation

Describe the feature you'd like to request

I have been using terraform mostly for IaC, and they have this command terraform plan which shows detail changes of what attributes are added, removed, or modified, or if resource going to be created or destroyed. I believe in Cloudformation this is done through changesets I think this would be very helpful before running amplify push.

Actually this issue has been mentioned before in #366 and the proposed solution was to use amplify status -v However this shows only a simple update. For example, I created a new table in schema.graphql file, and with amplify status -v it only shows that my api resource needs to be updated with no information of what's going to be updated

Describe the solution you'd like

For example, if I add a new table, amplify status -v could show:

New resource:
  Dyanmodb table NewTable will be created
  Dynamodb table OldTable will be removed

Describe alternatives you've considered

It would be great if we have a command like amplify plan to see what's going to be updated

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request
  • [ ] ⚠️ This feature might incur a breaking change

Wyfy0107 avatar Dec 08 '21 12:12 Wyfy0107

hi @Wyfy0107

Can you try our enhancement on amplify status command ? For detailed cfn diff you can try : amplify status -v <categoryName (optional)>

Let me know if this is something you are looking for ?

akshbhu avatar Dec 08 '21 21:12 akshbhu

Hello @akshbhu I just tried adding a new @model and this is the output from the above command and it is still not very clear about the differences

Screenshot 2021-12-09 at 10 48 18

Wyfy0107 avatar Dec 09 '21 08:12 Wyfy0107

Hi @Wyfy0107

We are only showing the diffs for the Root stack for Appsync as this might be the only difference from previous push.

I have marked this as Feature request cover all file assets for this diff.

akshbhu avatar Dec 13 '21 19:12 akshbhu