5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

terraformでRDSをさわるときに忘れがちな事

Posted at

TerraformでRDSを設定していた時に漏れてた事をメモ

backup_retention_period が反映されない

Backup保持期間を7にしたかった。
下記のように設定すると反映されない。

rds.tf
resource "aws_db_instance" "rds-setup" {
〜中略〜
  backup_retention_period = "7"
  backup_window = "22:29-22:59"
}

apply_immediatelyが足りていなかったので下記に編集

rds.tf
resource "aws_db_instance" "rds-setup" {
〜中略〜
  backup_retention_period = "7"
  backup_window = "22:29-22:59"
  apply_immediately = "true"
}

apply_immediatelyをtrueにした場合apply後にrebootになるので注意

参考URL:
TERRAFORMドキュメント

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?