From bba880ebba70294fb86747eaaa5df2ff7562a7ac Mon Sep 17 00:00:00 2001 From: Himanshu Ahirwar Date: Thu, 25 Jan 2024 19:30:33 +0530 Subject: [PATCH] fix: shutdown behavior for the instance defaults to STOP --- 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" {