Skip to content

Commit

Permalink
fix: failed to create ecs service due to empty list of container defi…
Browse files Browse the repository at this point in the history
…nitions
  • Loading branch information
saumitra-dev committed Jul 12, 2024
1 parent e048398 commit 2492bf8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ module "ecs_service" {
launch_type = "EC2"
requires_compatibilities = ["EC2"]

container_definitions = {
demo = {
image = "amazon/amazon-ecs-sample:latest"
port_mappings = []

readonly_root_filesystem = false

enable_cloudwatch_logging = false
create_cloudwatch_log_group = false
}
}

enable_autoscaling = false
autoscaling_policies = {}

Expand Down

0 comments on commit 2492bf8

Please sign in to comment.