BalaB
BalaB

Reputation: 3871

Terraform RDS parameter group change pending reboot

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

Answers (2)

Juan Fontes
Juan Fontes

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

mp3foley
mp3foley

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

Related Questions