我有以下RDS /参数组定义:
resource "aws_db_parameter_group" "my-parameter-group" {
name = "my-parameter-group"
family = "mysql5.5"
description = "My parameter group"
parameter {
name = "max_allowed_packet"
value = "16777216"
}
parameter {
name = "max_connect_errors"
value = "100"
}
}
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 = "somedb"
username = "${var.RDS_USERNAME}" # username
password = "${var.RDS_PASSWORD}" # password
db_subnet_group_name = "${aws_db_subnet_group.my-subnet-group.name}"
parameter_group_name = "${aws_db_parameter_group.my-parameter-group.name}"
multi_az = "false"
vpc_security_group_ids = ["${aws_security_group.my-rds-sg.id}"]
storage_type = "gp2"
skip_final_snapshot = true
allow_major_version_upgrade = true
backup_retention_period = 30 # how long we re going to keep your backups
availability_zone = "${aws_subnet.my-private-1.availability_zone}"
tags {
Name = "my-server-rds"
}
}
升级到5.6的适当方法是什么?
我应该添加allow_major_version_upgrade
(目前被this阻止),然后更改
a)family = "mysql5.5"
- >参数组中的family = "mysql5.6"
b)engine_version = "5.5.57"
- > engine_version = "5.6.39"
同时? (即在同一terraform apply
执行中?