Provide override parameters for Stage subclass in pipeline deployment #14385
-
I'm working on a CDK pipeline that deploys the same stack to three different environments. I want to provide customized parameters for each environment but I can't seem to find any documentation or "how to" on specifying parameter overrides for each deployment of the stack. Can someone please enlighten me as to how this "should" be done? I've googled the hell out of this and come up completely empty handed. This is the general concept of my pipeline and it's deploying to all enviroments. HOwever I need to customize the parameters for each environment: MyStack
Pipeline
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can pass parameters to your "cdk deploy" command, see documentation https://docs.aws.amazon.com/cdk/latest/guide/parameters.html Using this, you can set environment parameters to your CodeBuild projects for each final environment. I your case DATABASE_URL |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
You can pass parameters to your "cdk deploy" command, see documentation https://docs.aws.amazon.com/cdk/latest/guide/parameters.html
Using this, you can set environment parameters to your CodeBuild projects for each final environment. I your case DATABASE_URL
And then deploy your stack
cdk deploy [...] --parameters databaseUrl=$DATABASE_URL