有没有办法使用CloudFormation在Amazon Athena中创建DataBase和Table。 我提到了AWS文档,似乎只有一个资源可以使用CloudFormation创建。
参考:
答案 0 :(得分:1)
现在可以通过Glue数据目录在CloudFormation中创建Athena表: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html
答案 1 :(得分:0)
你看过这里吗?
https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html
为什么需要在Athena中使用Cloudformation创建数据库和表?
答案 2 :(得分:0)
我认为 (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Athena.html) AWS::雅典娜::工作组 & AWS::Athena::NamedQuery
**NamesQuery - 您将在其中提供 SQL/DDL 以创建表。
来自 AWS 的示例
https://athena-in-action.workshop.aws/20-howtostart/201-self-paced/2013-cloudformation.html