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

env package `--diff` show addon and params diffs

Open CaptainCarpensir opened this issue 2 years ago • 1 comments

Running copilot env package --diff only shows the diff of the generated env template. This could be enhanced to show the generated addons stack and env param diffs as well.

CaptainCarpensir avatar Dec 26 '23 17:12 CaptainCarpensir

My current workaround:

copilot env package -n prod --diff > env-diff-prod.yml

env-diff-prod.yml will contain a section similar to the below:

~ Resources:
    ~ AddonsStack/Properties:
        ~ TemplateURL: https://<bucket-name>.s3.us-east-2.amazonaws.com/<old_key> -> https://<bucket-name>.s3.us-east-2.amazonaws.com/<new_key> 

I copy both templates from S3 then run a diff on them.

aws s3 cp s3://<bucket-name>/<new_key> .
aws s3 cp s3://<bucket-name>/<old_key> .
diff <old_key> <new_key>

rubiconjosh avatar Dec 26 '23 21:12 rubiconjosh