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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则