AWS QuickSight analysis customization and creation as CDK code

0

Hello, I have been trying to automate the deployment of a QuickSight analysis using CDK code and I'm having troubles configuring the filters of the analysis. Specifically, I have a relative dates filter in the the analysis template, while trying to use various filter properties (ex: FilterProperty(), RelativeDatesFilterProperty) under the Cfn.Analysis class to change the specific configurations of the filter. Are there any workarounds for reducing the need for a QuickSight template or are L2 constructs unsupported in the CDK as of right now?

已提問 5 個月前檢視次數 238 次
1 個回答
0

In my experience, starting off with CDK is futile and an exercise in frustration.

My winning approach has been to do everything thru the UI, and then use the asset export feature to dump the configuration into CloudFormation JSON. Then use CfnInclude to load up the template from the file. At this point, you can just deploy it as-is. But sometimes I also use the CDK interface to manipulate the existing template to my needs.

This approach is also not perfect, and asset export is also full of bugs, where freshly exported templates will not deploy (will not pass validation). Still, usually, most errors are pretty obvious and with minimal JSON editing you can get it to work and deploy.

profile picture
m0ltar
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南