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

Diff against outdated output #23

Open
Lusitaniae opened this issue Jul 21, 2021 · 0 comments
Open

Diff against outdated output #23

Lusitaniae opened this issue Jul 21, 2021 · 0 comments

Comments

@Lusitaniae
Copy link

Lusitaniae commented Jul 21, 2021

I'm preparing changes and deploying them across dev/stage/prod.

I already deploy dev and staging, to be safe I want to do a diff against prod before deployment.

However, the diff will show outdated output (from the stage deployment) rather than production

sls diff --stage prod --region us-east-1

     ApiGatewayRestApi: {
       Properties: {
-        Name: "App1 (Serverless prod)"
+        Name: "App1 (Serverless stage)"
       }
     }
   }
   Outputs: {
     ApiGatewayRestApiId: {
       Export: {
-        Name: "app1-gateway-prod-ExtApiGatewayRestApiId"
+        Name: "app1-gateway-stage-ExtApiGatewayRestApiId"
       }
     }
     ApiGatewayRestApiRootResourceId: {
       Export: {
-        Name: "app1-gateway-prod-ExtApiGatewayRestApiRootResourceId"
+        Name: "app1-gateway-stage-ExtApiGatewayRestApiRootResourceId"
       }
     }
   }
 }

(these changes are not expected, I'm deploying stage: prod, and the name should stay the same)

Related to #14 I guess

I'd suggest

  1. Update documentation (Running deploy --noDeploy prior to the diff command, solves the issue, by updating the local cloudformation template), and/or
  2. Implement suggestion in Support to select processed or original remote CF template #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant