We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c9279 commit 190301bCopy full SHA for 190301b
task/main.tf
@@ -67,14 +67,20 @@ variable "log_driver" {
67
default = "journald"
68
}
69
70
+variable "role" {
71
+ description = "The IAM Role to assign to the Container"
72
+ default = ""
73
+}
74
+
75
/**
76
* Resources.
77
*/
78
79
# The ECS task definition.
80
81
resource "aws_ecs_task_definition" "main" {
- family = "${var.name}"
82
+ family = "${var.name}"
83
+ task_role_arn = "${var.role}"
84
85
lifecycle {
86
ignore_changes = ["image"]
0 commit comments