Skip to content

Commit 54bdf4b

Browse files
committed
add configure_at_launch option for volume block
1 parent a1049c0 commit 54bdf4b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/fargate/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ module "ecs_task_definition" {
191191
# Task Definition
192192
volume = {
193193
ex-vol = {}
194+
ex-vol2 = {
195+
host_path = "/tmp"
196+
# Only one volume can be configured at launch
197+
configure_at_launch = true
198+
}
194199
}
195200

196201
runtime_platform = {

modules/service/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,9 @@ resource "aws_ecs_task_definition" "this" {
733733
}
734734
}
735735

736-
host_path = try(volume.value.host_path, null)
737-
name = try(volume.value.name, volume.key)
736+
host_path = try(volume.value.host_path, null)
737+
name = try(volume.value.name, volume.key)
738+
configure_at_launch = try(volume.value.configure_at_launch, null)
738739
}
739740
}
740741

0 commit comments

Comments
 (0)