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 743b2d1 commit 3fc9d05Copy full SHA for 3fc9d05
main.tf
@@ -32,7 +32,7 @@ resource "aws_ecs_task_definition" "task" {
32
for_each = [for efs_vol in var.efs_volumes : {
33
name = "${var.cluster_name}-${efs_vol.efs_id}"
34
efs_id = efs_vol.efs_id
35
- root_directory = efs_vol.root_dir ? efs_vol.root_dir : "/opt/data"
+ root_directory = lookup(efs_vol, "root_dir", "/opt/data")
36
}]
37
38
content {
0 commit comments