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?
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:
The recommended approach is to have proper versioning configured on the template and then subsequently using the appropriate version for either creation or update of a dashboard. Once the dashboard is updated, you do not need to re-share the dashboard. All you can do is go ahead and update the published version of the dashboard using API update-dashboard-published-version details can be found here. For more information and clarity on the deployment process, please look at our devops site: Dev Ops QuickSight
We have shared the usecases for the analysis and dashboard creation to our Product teams. Thank you for the feedback.
This is not helpful as the topic is specifically about CDK. Unfortunately there is still no proper support to define the templates with CDK, so my workaround is the best one if we don’t want to have to write scripts to update the dashboards on every pipeline stage