Matthew Purdon
04/14/2021, 5:44 PMFrank
env for a stack to a different AWS account?Frank
Matthew Purdon
04/14/2021, 6:25 PMcdk-credential-plugin to deploy to a different account. https://aws.amazon.com/blogs/devops/cdk-credential-plugin/Matthew Purdon
04/14/2021, 6:27 PMFrank
prod credentials, ie. sst deploy --profile prod, you want to use the services account’s credentials and deploy into the prod account?Matthew Purdon
04/14/2021, 6:30 PMMatthew Purdon
04/14/2021, 7:29 PM"plugin": [
"cdk-assume-role-credential-plugin"
]Matthew Purdon
04/14/2021, 7:30 PM"@aws-cdk/core:newStyleStackSynthesis": "true"Frank
node_modules/@serverless-stack/core/index.js and look for the runCdkSynth function, and above --quite, you can add two lines:
"--plugin",
"cdk-assume-role-credential-plugin",Frank
cdk.json is definitely cleaner