How can I use an API call to describe an object with a list of unknown size as one of its parameters? #23852
Unanswered
Disciple153
asked this question in
Q&A
Replies: 1 comment 1 reply
-
One solution to your problem could be to write a custom resource in your CloudFormation template that loops through the DataSets in the Analysis description and creates the appropriate number of dataSetReferences in the sourceEntity for the Template. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on adding QuickSight support, and as part of that I'm trying to make the ability to import existing QuickSight resources, but a snag that I've come across is that in order to create a Template from a Analysis, I need to input a list of DataSet Arns from the Analysis into a differently formatted list for the Template:
QuickSight::DescribeAnalysis:
CfnTemplate.sourceEntity:
My problem is that if I use a CustomResource to get the AnalysisDescription, there is no way for me to tell how many DataSets the Analysis will have. I could use the aws-sdk, but I doubt that will get through a PR.
This article implies that there is a way to make API calls at runtime, but I can't figure out how to do that.
Here is my fork if it's of any help.
Beta Was this translation helpful? Give feedback.
All reactions