From 2e05f2c22332fd6ea6bb756fe14d5616d7e6dee5 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta <1989.gaurav@gmail.com> Date: Thu, 25 Aug 2022 15:57:20 +0530 Subject: [PATCH] chore: ignoring changes to task_definition to avoid overriding CD changes --- main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.tf b/main.tf index 2e12f57..00f1a4d 100644 --- a/main.tf +++ b/main.tf @@ -135,6 +135,12 @@ resource "aws_ecs_service" "service" { Name = "${var.name_prefix}-ecs-tasks-sg" }, ) + + lifecycle { + ignore_changes = [ + task_definition + ] + } } #------------------------------------------------------------------------------