Mike McCall
06/03/2021, 4:29 PMFrank
.env.local
gets handy for storing secrets. Definitely not the best practice, but most folks are familiar with it.Frank
cdk.context.json
, .env
, or even a config file should all work.Mike McCall
06/03/2021, 7:12 PMFrank
cdk.context.json
extensively. But I’d say maybe give it a try first. The values are typed, unlike .env
everything is a string.Frank
Mike McCall
06/03/2021, 7:12 PMFrank
Mike McCall
06/03/2021, 7:15 PMMike McCall
06/04/2021, 1:43 PM<http://cdk.App|cdk.App>
with context, but <http://sst.App|sst.App>
doesn't accept context. One way to get around this is to load the json in an env variable CDK_CONTEXT_JSON=$(cat cdk.context.json) npm run test
Frank
Frank
cdk.json
or cdk.context.json
?Mike McCall
06/04/2021, 6:17 PMMike McCall
06/04/2021, 6:18 PMFrank