Create AWS Quicksight Dataset using CDK

0

When creating a QuickSight Dataset using CDK, we have to specify the input_columns parameter for physical_table_map. Is there a way to include all columns in the table without having to write out all of them? I am connecting to s3 bucket through Athena and glue. So the table and column info should be able to retrieve from glue or Athena but cannot find out a way to do that...

1개 답변
0

Given that CDK renders a static (declarative) CloudFormation template, there is no native way for it to infer any information that it doesn't have at the time of synthesis.

A workaround might be using a CustomResource to fetch this information from Glue and then pass it to the CfnDataSet, but not sure if that'd work, given that data set definitions (data types) and Glue data type may not map directly. So you'd have to implement your custom resource logic and then to also do this remapping to convert the return value to DataSet specific way of declaring the data types.

Overall, I do not recommend this approach. I think it's better to have your code be the source of truth, which then declares both Glue and QS DataSet definitions from one place.

profile picture
m0ltar
답변함 4달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠