Skip to content

Commit 45a37ac

Browse files
authored
fix: Allow setting linux_parameters without inconsistent left/right error (#136)
1 parent 9634f7f commit 45a37ac

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/fargate/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ module "ecs_service" {
111111
log-driver-buffer-limit = "2097152"
112112
}
113113
}
114+
115+
linux_parameters = {
116+
capabilities = {
117+
drop = [
118+
"NET_RAW"
119+
]
120+
}
121+
}
122+
114123
memory_reservation = 100
115124
}
116125
}

modules/container-definition/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ locals {
1717
var.log_configuration
1818
)
1919

20-
linux_parameters = var.enable_execute_command ? merge({ "initProcessEnabled" : true }, var.linux_parameters) : var.linux_parameters
20+
linux_parameters = var.enable_execute_command ? merge({ "initProcessEnabled" : true }, var.linux_parameters) : merge({ "initProcessEnabled" : false }, var.linux_parameters)
2121

2222
definition = {
2323
command = length(var.command) > 0 ? var.command : null

0 commit comments

Comments
 (0)