aws极光自定义群集名称通过cloudformation

时间:2018-02-15 15:39:15

标签: amazon-cloudformation

我为aws mysql极光编写了cloudformation模板。已创建集群和数据库实例。但是群集的名称是堆栈名称和名称的组合。资源名称。例如:cluster name&端点 测试RDS-3 - 测试 - 4tz8fvcilgt5。 test-rds-3-test-4tz8fvcilgt5.cluster-ro-cr7d6ijxaz7u.us-east-1.rds.amazonaws.com

命令: - aws cloudformation create-stack --stack-name test-rds-3 --template-body file:///home/mahendra/clodcft/cft-rd.json

我想创建自定义群集名称,例如"生产测试"&它不应该依赖于堆栈名称或资源名称。可以请任何帮助我。

  "Type": "AWS::RDS::DBCluster",
  "Properties": {
    "AvailabilityZones": [
      "us-east-1c",
      "us-east-1d",
      "us-east-1e"
    ],
    "BackupRetentionPeriod": 1,
    "DatabaseName": "test",
    "DBClusterParameterGroupName": "test-parametergroup",
    "DBSubnetGroupName": "test-subnetgroup",
    "Engine": "aurora",
    "EngineVersion": "5.6.10a",
    "MasterUsername": "admin",
    "MasterUserPassword": "adminadmin",
    "Port": 3306,
    "PreferredBackupWindow": "04:00-04:30",
    "PreferredMaintenanceWindow": "Mon:05:00-Mon:05:30",
    "Tags": [
      {
        "Key": "Name",
        "Value": "testrds"
      }
    ],
    "VpcSecurityGroupIds": [ "sg-edcssd199" ]
  }

0 个答案:

没有答案