terraform aws_db_parameter_group
aws_db_parameter_group で常に差分が出てしまう
code:sh
Terraform detected the following changes made outside of Terraform since the last "terraform apply":
# aws_db_parameter_group.<your_db_parameter_group> has changed
~ resource "aws_db_parameter_group" "<your_db_parameter_group>" {
# (4 unchanged attributes hidden)
- parameter {
- apply_method = "immediate" -> null
- name = "max_allowed_packet" -> null
- value = "104857600" -> null
}
+ parameter {
+ apply_method = "pending-reboot"
+ name = "max_allowed_packet"
+ value = "104857600"
}
}
Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes.
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_db_parameter_group.one_minutes_db_parameter_group will be updated in-place
~ resource "aws_db_parameter_group" "<your_db_parameter_group>" {
# (4 unchanged attributes hidden)
+ parameter {
+ apply_method = "immediate"
+ name = "max_allowed_packet"
+ value = "104857600"
}
- parameter {
- apply_method = "pending-reboot" -> null
- name = "max_allowed_packet" -> null
- value = "104857600" -> null
}
}
調べたら issue が
似たような感じ
この人は timezone とかで差分が出ている
apply_method とかは全く同じ
同じ問題が出ている人
AWS上では time_zone は dynamic になっているとのこと
apply_method が pending-reboot 担っているからでは?