File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -142,4 +142,6 @@ resource "aws_ecs_task_definition" "ecs_task_definition" {
142
142
requires_compatibilities = " ${ var . requires_compatibilities } "
143
143
task_role_arn = " ${ var . task_role_arn } "
144
144
volume = " ${ var . volumes } "
145
+
146
+ count = " ${ var . register_task_definition ? 1 : 0 } "
145
147
}
Original file line number Diff line number Diff line change 1
1
output "arn" {
2
2
description = " The full Amazon Resource Name (ARN) of the task definition"
3
- value = " ${ aws_ecs_task_definition . ecs_task_definition . arn } "
3
+ value = " ${ join ( " " , aws_ecs_task_definition. ecs_task_definition . * . arn ) } "
4
4
}
5
5
6
6
output "container_definitions" {
@@ -10,10 +10,10 @@ output "container_definitions" {
10
10
11
11
output "family" {
12
12
description = " The family of your task definition, used as the definition name"
13
- value = " ${ aws_ecs_task_definition . ecs_task_definition . family } "
13
+ value = " ${ join ( " " , aws_ecs_task_definition. ecs_task_definition . * . family ) } "
14
14
}
15
15
16
16
output "revision" {
17
17
description = " The revision of the task in a particular family"
18
- value = " ${ aws_ecs_task_definition . ecs_task_definition . revision } "
18
+ value = " ${ join ( " " , aws_ecs_task_definition. ecs_task_definition . * . revision ) } "
19
19
}
Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ variable "readonlyRootFilesystem" {
175
175
description = " When this parameter is true, the container is given read-only access to its root file system"
176
176
}
177
177
178
+ variable "register_task_definition" {
179
+ default = true
180
+ description = " Registers a new task definition from the supplied family and containerDefinitions"
181
+ }
182
+
178
183
variable "repositoryCredentials" {
179
184
default = {}
180
185
description = " The private repository authentication credentials to use"
You can’t perform that action at this time.
0 commit comments