The use of replacement variables like '#{var}' is not possible in the cdk to use with resource identifiers, making it impossible to use one single template for a deployment pipeline. #7000
Labels
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
❓ General Issue
The Question
How to use variable replacement on the output templates from the stacks of the cdk, when the resource identifiers or fields like the dashboardName do not allow or remove characters like #{ }, necessary for tools like octopus to reference variables assigned during pipeline deployment, which are specific to the stage/environment of delivery, like dev, test or prod ?
E.g.
DashboardName = 'Dashboard-#{environmentVariable}'
and in the deployment pipeline:
#{environmentVariable} would be replaced for values like 'dev', 'test', 'prod'.
Environment
Other information
I think being able to assign identifiers to the resourses at the moment of deployment is important for a pipeline delivery, and using a single template that can be deployed in different stages.
With changes like Fixes #2976 , it is not possible to assign the DashboardName a replacement variable for pipeline deployment.
I think the name should be able to accept characters like #{ }, for cases when its necessary to add a reference to things like deployment-environment variables to name the construct.
The current DashboardName string validation forces the deployment of multiple static Cloud Formation templates, each one specific to a deployment-environment, only to be able to have names that are environment specific. Instead a better approach would be to have a single template that can be deployed in each environment resulting in dashboards that can be created with names that reference their deployment-environment.
The text was updated successfully, but these errors were encountered: