From 2ae54ac7955e5b8e3426e8b68654e44ab733f5ab Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Tue, 7 May 2019 14:29:31 +0100 Subject: [PATCH] (Feature) Allow specifying task volumes --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) 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"