Open gunarkroeger opened 2 years ago
This needs CloudFormation to allow the creation of Template from JSON. You should be able to make any service calls from the AWS CLI already.
This needs CloudFormation to allow the creation of Template from JSON. You should be able to make any service calls from the AWS CLI already.
Or to allow the creation of Analysis without Template. I don't see any details in AWS Console about Template when creating manually Analysis, same with details when calling the CLI aws quicksight describe-analysis. I can see DataSetArns but nothing about template which is required in CfnAnalysis. Looks like a bug IMHO
Please raise any concerns about this to the thread in the coverage roadmap
Still today not able to create QuickSight Analysis and Template using CDK. Any update on this Issue?
Hi @comcalvi, quicksight now allows creating a template from JSON. Could you reevaluate implementing this feature?
@gunarkroeger unless there's a way to do this with CloudFormation resources (that doesn't appear to be the case) then we are blocked
@peterwoodworth actually I see that there is now a TemplateVersionDefinitionProperty and a AnalysisDefinitionProperty that look like they would solve the issue. Haven't tested it yet
Great, I'm not really that familiar with quicksight. let me know! It looks to me like all the cloudformation properties are available in CDK already on a quick glance, let me know if that's incorrect too.
I had tried it a few months back, didn't find a straight forward way to deploy analysis boards to prod although I had created them manually on staging.
Steps to publish Analysis on prod using CDK:
list_analyses
ARN
for the analysis from there comparing the required Analysis name on stagingdescribe_analysis_definition
function from the quicksight client to download the JSON schemaDefinition
key in the JSON schema"true"
to True
CfnAnalysis
in CDK
to deploy to prod
aws_quicksight.CfnAnalysis(
scope,
...
definition=<generated_definition>
...
)
Description
Currently, the only way to create a QuickSight::Analysis is by giving it a QuickSight::Template as sourceEntity. And the only way to create a QuickSight::Template is by giving it either a QuickSight::Template or a QuickSight::Analysis as source Entity. So it is impossible to automate the creation of the Analysis completely.
Use Case
We want to reduce manual steps when deploying our pipeline as much as possible. We also want to version control the visuals in our analysis.
Proposed Solution
To properly automate QuickSight with CDK we need a way to define the Template with CDK, by perhaps passing it a json with the definition of all visuals in the analysis. This way we can source control the Analysis design and eliminate the manual steps for creating the analysis in the console.
Ideally there would be a way to call aws-describe-template to see the json of an analysis created with the console manually, that can then be included in the CDK src.
Other information
No response
Acknowledge