Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
(Feature) Allow specifying task volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stretch96 committed May 7, 2019
1 parent ea6b1df commit 2ae54ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2ae54ac

Please sign in to comment.