我有以下rds定义:
resource "aws_db_instance" "my-rds" {
allocated_storage = 20
engine = "mysql"
engine_version = "5.5.57"
instance_class = "db.t2.micro"
identifier = "my-db"
name = "somename"
username = "${var.RDS_USERNAME}" # username
password = "${var.RDS_PASSWORD}" # password
db_subnet_group_name = "${aws_db_subnet_group.some-subnet-group.name}"
parameter_group_name = "${aws_db_parameter_group.some-rds-parameter-group.name}"
multi_az = "false"
vpc_security_group_ids = ["${aws_security_group.some-sg.id}"]
storage_type = "gp2"
skip_final_snapshot = true
backup_retention_period = 30 # how long we re going to keep your backups
availability_zone = "${aws_subnet.some-private-1.availability_zone}"
tags {
Name = "some-tag-name"
}
}
所以我只是补充:
allow_major_version_upgrade = true
...并且得到
Error: Error applying plan:
1 error(s) occurred:
* aws_db_instance.my-rds: 1 error(s) occurred:
* aws_db_instance.my-rds: Error modifying DB Instance my-db: InvalidParameterCombination: No modifications were requested
status code: 400, request id: 2aed626f-6063-4b69-ac37-654bd783fd37
?
对于新的主要发布版本升级,您需要使用新的参数组和选项组 资源“aws_db_parameter_group”“这个” 资源“aws_db_option_group”“这个”