Jan Nylund
06/11/2022, 3:34 PMJan Nylund
06/11/2022, 3:48 PMJan Nylund
06/12/2022, 9:34 AMJan Nylund
06/12/2022, 9:44 AMsls package to avoid running this in deployment stage, and instead package things ready in an earlier stage?Jan Nylund
06/12/2022, 9:48 AMsst build seems to require auth to AWS 😕Jan Nylund
06/12/2022, 10:33 AMJan Nylund
06/12/2022, 10:34 AMJan Nylund
06/12/2022, 10:36 AMFrank
Frank
Jan Nylund
06/13/2022, 6:57 AMJan Nylund
06/13/2022, 7:10 AMsst build to deploy? Is that currently not supported?Jan Nylund
06/13/2022, 7:14 AMsst build (or sst package ) and then in the deploy stage be able to do sst deploy --package <path-to-package> --stage <potentially some-other-stage-than-in-package>Jan Nylund
06/13/2022, 7:15 AMFrank
sst build process actually needs to be aware of the stage. For example, you can stage specific logic in ur code:
new sst.Api(stack, "api", {
customDomain: app.stage === "prod"
? "<http://api.domain.com|api.domain.com>"
: undefined,
});
Depending on the stage, the generated CloudFormation from sst build is different for ie. prod and devFrank
sls package against one stage, and deploy the package to another stage.Jan Nylund
06/13/2022, 8:23 PMJan Nylund
06/13/2022, 8:23 PMJan Nylund
06/13/2022, 8:24 PMJan Nylund
06/13/2022, 8:31 PM[x86_64] ± diff -rq .build-dev .build-prod
Only in .build-dev/cdk.out: dev-demo-api-ApiStack.assets.json
Only in .build-dev/cdk.out: dev-demo-api-ApiStack.template.json
Only in .build-dev/cdk.out: dev-demo-api-StorageStack.assets.json
Only in .build-dev/cdk.out: dev-demo-api-StorageStack.template.json
Files .build-dev/cdk.out/manifest.json and .build-prod/cdk.out/manifest.json differ
Only in .build-prod/cdk.out: prod-demo-api-ApiStack.assets.json
Only in .build-prod/cdk.out: prod-demo-api-ApiStack.template.json
Only in .build-prod/cdk.out: prod-demo-api-StorageStack.assets.json
Only in .build-prod/cdk.out: prod-demo-api-StorageStack.template.json
Files .build-dev/cdk.out/tree.json and .build-prod/cdk.out/tree.json differ
Files .build-dev/sst-debug.log and .build-prod/sst-debug.log differ
Files .build-dev/sst-merged.json and .build-prod/sst-merged.json differJan Nylund
06/13/2022, 8:34 PMJan Nylund
06/13/2022, 8:35 PM