Skip to content

Commit 82ee7ae

Browse files
update default command input
1 parent 96f3c0a commit 82ee7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

container_definition/container_definition.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ locals {
2828
}, var.health_check) : null
2929

3030
definition = {
31-
command = length(var.command) > 0 ? ["sh", "-c", var.command] : null
31+
command = length(var.command) > 0 ? [var.command] : null
3232
cpu = var.cpu
3333
dependsOn = length(var.dependencies) > 0 ? var.dependencies : null # depends_on is a reserved word
3434
disableNetworking = local.is_not_windows ? var.disable_networking : null
@@ -82,4 +82,4 @@ resource "aws_cloudwatch_log_group" "this" {
8282
kms_key_id = var.cloudwatch_log_group_kms_key_id
8383

8484
tags = var.tags
85-
}
85+
}

0 commit comments

Comments
 (0)