[英]How can we create database and table in Amazon Athena using CloudFormation
Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.有什么方法可以使用 CloudFormation 在 Amazon Athena 中创建数据库和表。 I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.我参考了 AWS 文档,似乎只有一种资源可以使用 CloudFormation 创建。
Ref :参考:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html
现在可以通过 Glue 数据目录在 CloudFormation 中创建 Athena 表: https : //docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html
I think its possible with ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Athena.html ) AWS::Athena::WorkGroup & AWS::Athena::NamedQuery我认为它可能与( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Athena.html )AWS::Athena::WorkGroup & AWS::Athena::NamedQuery
**NamesQuery - where you will provide your SQL/DDL to create the table. **NamesQuery - 您将在其中提供 SQL/DDL 以创建表。
Example from AWS来自 AWS 的示例
https://athena-in-action.workshop.aws/20-howtostart/201-self-paced/2013-cloudformation.html https://athena-in-action.workshop.aws/20-howtostart/201-self-paced/2013-cloudformation.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.