rav*_*avi 5 amazon-web-services amazon-rds aws-cloudformation aws-aurora-serverless
尝试使用 MySQL 2.07.1 创建 RDS aurora 服务器并收到错误“您请求的引擎模式无服务器当前不可用。(服务:AmazonRDS;状态代码:400;错误代码:InvalidParameterValue;请求 ID:xxxx;代理:无效的)”
任何建议都会对我有很大帮助
这是示例代码
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template AuroraServerlessDBCluster: Sample template showing how to create an Amazon Aurora Serverless DB cluster. **WARNING** This template creates an Amazon Aurora DB cluster. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"DBUsername" : {
"NoEcho" : "true",
"Description" : "Username for MySQL database access",
"Type" : "String",
"MinLength" : "1",
"MaxLength" : "16",
"AllowedPattern" : "[a-zA-Z][a-zA-Z0-9]*",
"ConstraintDescription" : "must begin with a letter and contain only alphanumeric characters."
},
"DBPassword" : {
"NoEcho" : "true",
"Description" : "Password MySQL database access",
"Type" : "String",
"MinLength" : "8",
"MaxLength" : "41",
"AllowedPattern" : "[a-zA-Z0-9]*",
"ConstraintDescription" : "must contain only alphanumeric characters."
}
},
"Resources" : {
"RDSCluster" : {
"Type": "AWS::RDS::DBCluster",
"Properties" : {
"MasterUsername" : {
"Ref": "DBUsername"
},
"MasterUserPassword" : {
"Ref": "DBPassword"
},
"DBClusterIdentifier" : "my-serverless-cluster",
"Engine" : "aurora",
"EngineVersion" : "2.07.1",
"EngineMode" : "serverless",
"ScalingConfiguration" : {
"AutoPause" : true,
"MinCapacity" : 4,
"MaxCapacity" : 32,
"SecondsUntilAutoPause" : 1000
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
小智 2
您正在尝试使用 Aurora MySQL 2.07.1 创建 RDS aurora 无服务器,这是 MySQL 5.7 版本[+]链接。查看上面的代码和模板参数,我可以看到您拥有的“Engine”参数是“aurora”,对于 MySQL 5.7 版本 [+](https: //docs.aws.html),它应该是“aurora-mysql”。 amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-engine)。
| 归档时间: |
|
| 查看次数: |
4970 次 |
| 最近记录: |