Skip to content

Commit

Permalink
add configure_at_launch option for volume block
Browse files Browse the repository at this point in the history
  • Loading branch information
bvalerius committed Dec 2, 2024
1 parent a1049c0 commit 54bdf4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions examples/fargate/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ module "ecs_task_definition" {
# Task Definition
volume = {
ex-vol = {}
ex-vol2 = {
host_path = "/tmp"
# Only one volume can be configured at launch
configure_at_launch = true
}
}

runtime_platform = {
Expand Down
5 changes: 3 additions & 2 deletions modules/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,9 @@ resource "aws_ecs_task_definition" "this" {
}
}

host_path = try(volume.value.host_path, null)
name = try(volume.value.name, volume.key)
host_path = try(volume.value.host_path, null)
name = try(volume.value.name, volume.key)
configure_at_launch = try(volume.value.configure_at_launch, null)
}
}

Expand Down

0 comments on commit 54bdf4b

Please sign in to comment.