From 837864cf57d5ed4a9b8a1d8c328eebb3cca477f7 Mon Sep 17 00:00:00 2001 From: Himanshu Ahirwar <83774016+h1manshu98@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:35:30 +0530 Subject: [PATCH] fix: shutdown behavior for the instance defaults to STOP (#66) --- variables.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index d14ea36..2728408 100644 --- a/variables.tf +++ b/variables.tf @@ -99,8 +99,9 @@ variable "disable_api_termination" { } variable "instance_initiated_shutdown_behavior" { - type = string - default = "terminate" + type = string + default = "stop" + description = "(Optional) Shutdown behavior for the instance. Amazon defaults this to `stop` for EBS-backed instances and `terminate` for instance-store instances. Cannot be set on instance-store instances. See Shutdown Behavior for more information." } variable "placement_group" {