【发布时间】:2019-08-04 08:45:30
【问题描述】:
有人提示我如何将 !Ref und !Sub 从 CloudFormation 转换为 serverless.yml。
resources:
Resources:
AthenaCreateDatabaseQuery:
Type: 'AWS::Athena::NamedQuery'
Properties:
Description: Run this query to initialize the Athena database
QueryString: "CREATE DATABASE IF NOT EXISTS $(self:custom.etlDatabase};"
Database: ${self:custom.etlDataBase}
- 在 Cloudformation 中,QueryString 属性以 !Sub 和 带有 !Ref 的数据库属性。
感谢克里斯蒂安
【问题讨论】:
标签: amazon-web-services amazon-cloudformation serverless amazon-athena