Reputation: 3871
AWS RDS parameter group change.
The script update the parameter group name from
"AB" to "DC".
But I noticed that it was waiting for "Pending Reboot". How can I get it auto rebooted upon ?
terraform apply "test-test-plan"
Upvotes: 4
Views: 5877
Reputation: 908
According to AWS documentation:
Most modifications to a DB instance you can either apply immediately or defer until the next maintenance window. Some modifications, such as parameter group changes, require that you manually reboot your DB instance for the change to take effect.
So I don't think that terraform is able to do it since it uses the AWS API, either you can wait for the next maintenance window or try to reboot your RDS manually on the console.
Upvotes: 0
Reputation: 715
Some RDS parameter changes cannot be applied without a reboot. The terraform aws_db_parameter_group documentation states:
apply_method - (Optional) "immediate" (default), or "pending-reboot". Some engines can't apply some parameters without a reboot, and you will need to specify "pending-reboot" here.
So this may also be true with parameter group changes.
Upvotes: 5