我有一个CloudFormation堆栈模板,其中包含一个具有RdsDatabase对象的DataPipeline资源:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
ProUsageReportsPipelineStg:
Type: AWS::DataPipeline::Pipeline
Properties:
Name: my-db
PipelineObjects:
- id: ProAccountDB
type: RdsDatabase
region: us-west-2
username: username
"*password": password
rdsInstanceId: mydb
当我尝试创建此堆栈时,出现以下错误:
Encountered unsupported property *password
但是,根据documentation传递密码的地方。
答案 0 :(得分:1)
你很亲密。正确的语法是这样的:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
ProUsageReportsPipelineStg:
Type: AWS::DataPipeline::Pipeline
Properties:
Name: my-db
PipelineObjects:
-
Id: ProAccountDB
Name: "My Pro Account database"
Fields:
-
Key: "type"
StringValue: "RdsDatabase"
-
Key: "region"
StringValue: "us-west-2"
-
Key: "username"
StringValue: "username"
-
Key: "*password"
StringValue: "password"
-
Key: "rdsInstanceId"
StringValue: "mydb"
您还可以查看AWS文档中的this示例以供参考。