How to apply CustomSynthesizer at app level ? #22999
Unanswered
kodemuseGit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am using aws cdk toolkit to deploy resources on AWS. While working on project, I faced a use case where I need to built my own bootstrap.yml and in this file S3 bucket name has been changed. This part is working fine.
But when I am trying to use this S3 bucket name then I got to know that I have to override the DefaultStackSynthesizer option.
I did that and it works fine with 1 stack. But when I am trying to use same DefaultStackSynthesizer with other stack then it gives me error.
Which also fine that, because as per #11528 this we should not same Synthesizer for more then 1 stack. Following piece of code is working fine. But my question is, In my project I have 100s of Stack. is there any easy way to registered this Synthesizer at 1 place.
**let defaultStackSynth = new DefaultStackSynthesizer({
fileAssetsBucketName: 'cdk-demo-bucket-123',
})
new SNSStack(app, 'SNSTopic', {
synthesizer: defaultStackSynth,
});**
Beta Was this translation helpful? Give feedback.
All reactions