Hans Song
03/08/2022, 12:34 AMsst cdk deploy --toolkit-stack-name mystackname
work as expected?
• is there any way for lambas running in the sst runtime to have their output logged to stdout/stderr as well?Adam Fanello
03/08/2022, 12:39 AMHans Song
03/08/2022, 12:40 AMFrank
use their bootstrap stack
, do you mean:
• bootstrapping with a different stack name; or
• bootstrapping with custom resources (ie. override the bucket name in the bootstrap stack); or
• they have previously bootstrapped, and they want SST to talk to the existing bootstrap stack to deployHans Song
03/08/2022, 2:19 AMFrank
export default function main(app) {
new MySampleStack(app, "sample", {
synthesizer: new DefaultStackSynthesizer({
fileAssetsBucketName: 'my-orgs-asset-bucket',
}),
});
}
Frank
Frank
Hans Song
03/08/2022, 2:28 AMFrank
CDKToolkit
.Hans Song
03/08/2022, 2:35 AMFrank
cdk bootstrap --bootstrap-bucket-name my-custom-bootstrap-bucket
Frank
not
bootstrapped before, and they want to bootstrap the default
stack
2. The org has not
bootstrapped before, and they want to bootstrap a custom
stack
3. The org has already
bootstrapped the default
stack before, and they want the SST app to use the default stack
4. The org has already
bootstrapped a custom
stack before, and they want the SST app to use the custom stack
Lemme know which scenario it is. And we can go from there.Hans Song
03/08/2022, 2:39 AM--toolkit-stack-name
? i see now the contents of the existing bootstrap stack mostly matches up with those propsFrank
Hans Song
03/08/2022, 3:10 AMFrank
sst deploy
, do u get an error?Hans Song
03/08/2022, 3:25 AMAccessDenied: User: arn;aws:sts:...:assumed-role/... is is not authorized to perform: cloudformation:CreateChangeSet on resource arn:aws:cloudformation:...:stack/CDKToolkit/* because no identity-based policy allows the cloudformation:CreateChangeSet action
...
Error: There was an error bootstrapping your AWS account.
Frank
Hans Song
03/08/2022, 3:59 AMFrank
cloudformation:CreateChangeSet
permission to create the bootstrap stack.Frank
ap-southeast-2
) same account?Hans Song
03/09/2022, 1:08 AMcdk-bootstrap-retail
in ap-southeast-2
with resources such as deployment roles, lambda boundaries, cloudformation execution roles, etcFrank
node_modules/@serverless-stack/core/dist/index.js
• search for --require-approval
• insert two lines above it
"--toolkit-stack-name",
"cdk-bootstrap-retail",
"--require-approval", // insert above this line
And then try running running sst start
or sst deploy
.Frank
--toolkit-stack-name
flag to SST CLI.Hans Song
03/15/2022, 8:36 AMHans Song
03/15/2022, 8:38 AMnpx sst cdk --toolkit-stack-name ...
and the method you suggested both ended up working but due to security limitations we had a bunch of other requirements (out of sst scope)Frank