Promote CfnTemplate changes through pipeline stages to update CfnDashboards (CDK)

Hi all,
QuickSight does not support creating an CfnAnalysis purely with CDK. So I’ve taken the approach to create an Analysis and Template manually in the alpha stage of my pipeline which then gets used as sourceEntity for the beta stage and prod stage to automatically create a Dashboard on each stage.

However, if I update the template in the alpha stage and trigger the pipeline to use the new template, it does not detect that it needs to update the resources on the beta and prod stage.
On the other hand, if I append the version number to the dashboards name and id, it correctly recreates the dashboard. However, it requires re-sharing the dashboard to everyone and changing the URL they use to access it which is undesirable.

How can I trigger the Dashboard to reload the template using CDK?
When are we getting proper CDK support to create analyses and dashboards without manual steps, i.e. defining the visuals with a json format?

Hi Gunar, Wondering if you were able to solve the problem.

I’ve managed to workaround it by adding the version number to the template and analysis ids on every stage to force the update and keeping the dashboard id the same. Still requires manual steps and has multiple problems until proper support for CDK is added:

1 Like

Thanks Gunar for sharing the hack.

1 Like