From 72e413573c95c21ff66751b2b4fdc34d117bac42 Mon Sep 17 00:00:00 2001 From: Praveen Date: Wed, 4 Dec 2024 19:09:44 +0530 Subject: [PATCH] Added Variables to Set ec2 detailed monitoring --- terraform/010-cluster/main.tf | 1 + terraform/010-cluster/vars.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/terraform/010-cluster/main.tf b/terraform/010-cluster/main.tf index f627113..785c10d 100644 --- a/terraform/010-cluster/main.tf +++ b/terraform/010-cluster/main.tf @@ -55,6 +55,7 @@ module "asg" { ami_id = data.aws_ami.ecs_ami.id additional_user_data = var.asg_additional_user_data tags = var.tags + enable_ec2_detailed_monitoring = var.enable_ec2_detailed_monitoring } /* diff --git a/terraform/010-cluster/vars.tf b/terraform/010-cluster/vars.tf index e55ae82..fdc87d8 100644 --- a/terraform/010-cluster/vars.tf +++ b/terraform/010-cluster/vars.tf @@ -115,3 +115,9 @@ variable "log_retention_in_days" { type = number default = 30 } + +variable "enable_ec2_detailed_monitoring" { + description = "Whether to enable detailed monitoring for EC2 instances" + type = bool + default = false +}