copilot-cli
copilot-cli copied to clipboard
env package `--diff` show addon and params diffs
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.
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>