Skip to content

Commit

Permalink
fix: ignore changes no replace
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Nov 20, 2024
1 parent d72a821 commit 5135b1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@ resource "aws_ecs_service" "ignore_changes" {
}

}

moved {
from = var.ignore_changes ? aws_ecs_service.default : aws_ecs_service.ignore_changes
to = var.ignore_changes ? aws_ecs_service.ignore_changes : aws_ecs_service.default
}
5 changes: 5 additions & 0 deletions service/task_def.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,8 @@ resource "aws_ecs_task_definition" "ignore_changes" {
ignore_changes = [container_definitions]
}
}

moved {
from = var.ignore_changes ? aws_ecs_task_definition.ignore_changes : aws_ecs_task_definition.default
to = var.ignore_changes ? aws_ecs_task_definition.default : aws_ecs_task_definition.ignore_changes
}

0 comments on commit 5135b1a

Please sign in to comment.