不支持的属性*密码
问题描述:
我有含有具有RdsDatabase对象DataPipeline资源CloudFormation堆栈模板:不支持的属性*密码
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即是传递密码的地方。
答
你非常接近。正确的语法是这样的:
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例子供参考。