Skip to content

Commit 2492bf8

Browse files
committed
fix: failed to create ecs service due to empty list of container definitions
1 parent e048398 commit 2492bf8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ module "ecs_service" {
3434
launch_type = "EC2"
3535
requires_compatibilities = ["EC2"]
3636

37+
container_definitions = {
38+
demo = {
39+
image = "amazon/amazon-ecs-sample:latest"
40+
port_mappings = []
41+
42+
readonly_root_filesystem = false
43+
44+
enable_cloudwatch_logging = false
45+
create_cloudwatch_log_group = false
46+
}
47+
}
48+
3749
enable_autoscaling = false
3850
autoscaling_policies = {}
3951

0 commit comments

Comments
 (0)