Commit dc462c0 1 parent 0df2af7 commit dc462c0 Copy full SHA for dc462c0
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ resource "aws_ecs_service" "service" {
212
212
]
213
213
name = var.name_prefix
214
214
cluster = var.cluster_id
215
- task_definition = aws_ecs_task_definition.task.arn
215
+ task_definition = var.task_definition != "" ? var.task_definition : aws_ecs_task_definition.task.arn
216
216
desired_count = var.desired_count
217
217
launch_type = "FARGATE"
218
218
deployment_minimum_healthy_percent = var.deployment_minimum_healthy_percent
Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ variable "task_container_protocol" {
84
84
type = string
85
85
}
86
86
87
+ variable "task_definition" {
88
+ description = " Provided task definition for the service."
89
+ default = " "
90
+ type = string
91
+ }
92
+
87
93
variable "task_definition_cpu" {
88
94
description = " Amount of CPU to reserve for the task."
89
95
default = 256
You can’t perform that action at this time.
0 commit comments