不支持 属性 *密码

Unsupported property *password

我有一个 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那是传密码的地方。

你们很接近。正确的语法应该是这样的:

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 示例以供参考。