After changing terraform and aws provider's version from a lower one to a higher one, this db resource will execute create replacement and then destroy. Even the db instance won't be destroyed and recreate, but its related option group and parameter group will be updated.
Will it cause some issue for the running DB service in AWS?
+ create
~ update in-place
+/- create replacement and then destroy
Terraform will perform the following actions:
# module.db.module.db_instance.aws_db_instance.this[0] will be updated in-place
~ resource "aws_db_instance" "this" {
id = "svc-mysql"
name = "svc"
~ option_group_name = "svc-mysql-20190238920200000000" -> (known after apply)
~ parameter_group_name = "svc-mysql" -> (known after apply)
~ skip_final_snapshot = true -> false
...
# module.db.module.db_instance.random_id.snapshot_identifier[0] will be created
+ resource "random_id" "snapshot_identifier" {
...
# module.db.module.db_option_group.aws_db_option_group.this[0] must be replaced
+/- resource "aws_db_option_group" "this" {
~ arn = "arn:aws:rds:us-east-2:19312071070:og:svc-mysql-20190238920200000000" -> (known after apply)
~ id = "svc-mysql-20190238920200000000" -> (known after apply)
~ name = "svc-mysql-20190238920200000000" -> (known after apply)
~ option_group_description = "Option group for svc-mysql" -> "svc-mysql option group" # forces replacement
...
# module.db.module.db_parameter_group.aws_db_parameter_group.this[0] must be replaced
+/- resource "aws_db_parameter_group" "this" {
~ arn = "arn:aws:rds:us-east-2:19312071070:pg:svc-mysql-20190238920200000000" -> (known after apply)
~ description = "Database parameter group for svc-mysql" -> "svc-mysql parameter group" # forces replacement
~ id = "svc-mysql-20190238920200000000" -> (known after apply)
~ name = "svc-mysql-20190238920200000000" -> (known after apply)
...
# module.db.module.db_subnet_group.aws_db_subnet_group.this[0] will be updated in-place
~ resource "aws_db_subnet_group" "this" {
~ description = "Database subnet group for svc-mysql" -> "svc-mysql subnet group"
...
Plan: 3 to add, 2 to change, 2 to destroy.
Such as restart db instance.