[英]Serverless-framework postgresql version upgrading problem
We use serverless-framework and Postgresql.我们使用无服务器框架和 Postgresql。
Type: AWS::RDS::DBInstance
Properties:
EngineVersion: 11.8
It was 11.8 before, we successfully upgraded it from 11.8 to 11.9 by changing the version in serverless.yml
in EngineVersion
.之前是 11.8,我们通过更改
serverless.yml
中EngineVersion
中的版本,成功将其从 11.8 升级到 11.9。 But now we need to upgrade it to 11.10 and we have the following issue:但是现在我们需要将它升级到 11.10,我们有以下问题:
The error message:错误信息:
Cannot upgrade postgres from 11.9 to 11.1 (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: e0d1923a-cf98-44ea-a9e4-bc3871e33bf6; Proxy: null).
So it looks like it tries to upgrade to 11.1 rather than 11.10.所以看起来它试图升级到 11.1 而不是 11.10。
It seems like Serverless ignores '0' in Engine Version that you are trying to set up.似乎无服务器忽略了您尝试设置的引擎版本中的“0”。 Could you try to escape version with quotes?
你能尝试用引号转义版本吗?
It will look like this:它看起来像这样:
Type: AWS::RDS::DBInstance
Properties:
EngineVersion: '11.10'
It should help to solve the problem and upgrade version successfully它应该有助于解决问题并成功升级版本
The 11.10
value you're specifying for the EngineVersion
property is processed as a number by the YAML engine since you're not using quotes, so the trailing zeros are removed and the resulting value is 11.1
.您为
EngineVersion
属性指定的11.10
值由 YAML 引擎作为数字处理,因为您没有使用引号,因此删除了尾随零,结果值为11.1
。 You need to specify the value in quotes, like this: "11.10"
您需要在引号中指定值,例如:
"11.10"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.