QAA*_*QAA 0 amazon-ec2 amazon-rds aws-cloudformation
我正在尝试创建一个运行 MySQL 数据库的 RDS 服务器并收到以下错误:
1 validation error detected: Value '[AWS:RDS::DBInstance]' at 'typeNameList' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 204, Member must have length greater than or equal to 10, Member must satisfy regular expression pattern: [A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}]
AWSTemplateFormatVersion: 2010-09-09
Parameters:
DBName:
Type: String
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
MUser:
Type: String
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
MPass:
Type: String
AllowedPattern: '[a-zA-Z0-9]*'
Description: "It shouldn't be less than 8 characters"
Resources:
MyDBInstance:
Type: AWS:RDS::DBInstance
Properties:
DBName: !Ref DBName
MasterUserPassword: !Ref MUser
MasterUserPassword: !Ref MPass
Engine: MySQL
DBInstanceClass: db.t2.micro
StorageType: gp2
PubliclyAccessible: True
AllocatedStorage: "20"
DBInstanceIdentifier: !Join ["-", [ "MyDBInstance", !Ref "AWS::Region" ]]
AvailabilityZone: !Select [1, !GetAZs ""]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
642 次 |
| 最近记录: |