You need to ensure that an AWS Auto Scaling Group maintains capacity during a configuration change that requires a new launch template. Which lifecycle meta-argument should you use?
Trap 1: replace_triggered_by
This forces replacement based on other resource changes, not ordering.
Trap 2: ignore_changes
This prevents Terraform from reacting to changes in specified attributes.
Trap 3: prevent_destroy
This prevents the resource from being deleted, but does not dictate order.
- A
replace_triggered_by
Why wrong: This forces replacement based on other resource changes, not ordering.
- B
ignore_changes
Why wrong: This prevents Terraform from reacting to changes in specified attributes.
- C
create_before_destroy = true
This enables the desired behavior for zero-downtime updates.
- D
prevent_destroy
Why wrong: This prevents the resource from being deleted, but does not dictate order.