Omi Chowdhury
12/10/2021, 4:27 PMthdxr
12/10/2021, 4:28 PMOmi Chowdhury
12/10/2021, 4:32 PMOmi Chowdhury
12/10/2021, 4:34 PMOmi Chowdhury
12/10/2021, 4:34 PMthdxr
12/10/2021, 4:39 PMOmi Chowdhury
12/10/2021, 4:42 PMsst start from our laptops against that stageFrank
us-east-1 and picked up the ambient region, should we also store the region in .sst as @Omi Chowdhury suggested? So in case ambient region changed, they don’t end up deploying to another region.thdxr
12/10/2021, 5:40 PMFrank
Frank
us-east-1 for now, and each dev run sst start on the default stage configured in ur aws credentials?Omi Chowdhury
12/10/2021, 7:17 PMBlake E
12/10/2021, 7:24 PMthdxr
12/10/2021, 7:25 PMOmi Chowdhury
12/10/2021, 8:21 PMFrank
Frank
CDK_DEFAULT_ACCOUNT and CDK_DEFAULT_REGION. I think what we can do is:
1. not set the DEFAULT_REGION in `packages/cli/bin/scripts.js`; and
2. set region to something like deployProps.region || process.env.CDK_DEFAULT_REGION || "us-east-1" in packages/resources/src/App.js
https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/App.ts#L183-L185Frank
thdxr
12/10/2021, 8:51 PMOmi Chowdhury
12/10/2021, 9:02 PMcli/assets/debug-stack/bin/index.js to get its region from process.env but running into another issue.
Everything deploys fine but now I’m getting this error on `sst start`:
Failed to fetch resources. Error [ConfigError]: Missing region in config
at Request.VALIDATE_REGION (/Users/omi/workspaces/node_modules/@serverless-stack/cli/node_modules/aws-sdk/lib/event_listeners.js:94:47)
I expect its because config.region is undefined during cli/scripts/start.js - but haven’t tracked down where config is getting passed down to AWS SDKOmi Chowdhury
12/10/2021, 10:20 PMFrank
Frank
Omi Chowdhury
12/12/2021, 5:53 PMFrank
Frank
sst.json, SST will respect the default region in the local aws config fileOmi Chowdhury
12/13/2021, 7:31 PM