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

Commit

Permalink
Merge pull request #6 from dxw/task-volumes
Browse files Browse the repository at this point in the history
(Feature) Allow specifying task volumes
  • Loading branch information
Stretch96 authored May 7, 2019
2 parents ea6b1df + 2ae54ac commit 82dfde9
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 82dfde9

Please sign in to comment.