diff --git a/main.tf b/main.tf index abfc57c..7a90489 100644 --- a/main.tf +++ b/main.tf @@ -7,6 +7,7 @@ resource "aws_ecs_task_definition" "main" { memory = "${var.task_memory}" requires_compatibilities = ["EC2"] execution_role_arn = "${var.task_execution_role_arn}" + volume = ["${var.task_volumes}"] } # Service with bridge networking mode diff --git a/variables.tf b/variables.tf index 1c47401..26a7427 100644 --- a/variables.tf +++ b/variables.tf @@ -68,6 +68,12 @@ variable "task_memory" { default = "" } +variable "task_volumes" { + description = "Task volumes" + type = "list" + default = [] +} + variable "container_name" { description = "Container Name" type = "string"