#✅ - Environment aware CDK stacks with Amplify Gen2

7 messages · Page 1 of 1 (latest)

wanton wing
#

Hi! I wonder how you are handling conditions in CDK stacks according to the environment. In pure CDK you could use contexts for that purpose, but I still haven't found a good way to handle that with amplify gen2. E.g.: I don't want to setup ALBs with TLS in sandbox so I don't need to create and approve certificates for it.

Appreciate any hints on that 🙂

Thanks!

#

Environment aware CDK stacks with Amplify Gen2

supple tokenBOT
#

✅ - Environment aware CDK stacks with Amplify Gen2

#

﹖ - Environment aware CDK stacks with Amplify Gen2

#

Thread has been re-opened.

glass cliff
#

Hey @wanton wing , this is currently not yet supported and have a feature request open for this: https://github.com/aws-amplify/amplify-backend/issues/837 . Do add a thumbs up on this to help us prioritize this.
But one workaround would be to create a env file, check for the env variable and skip the resource deploy

GitHub

Environment information System: OS: macOS 13.6.3 CPU: (8) arm64 Apple M1 Memory: 120.47 MB / 16.00 GB Shell: 3.6.1 - /opt/homebrew/bin/fish Binaries: Node: 18.18.0 - ~/.local/share/nvm/v18.18.0/bin...

supple tokenBOT
#

✅ - Environment aware CDK stacks with Amplify Gen2