Skip to content

Commit fd7a25b

Browse files
authored
fix: Fixed inappropriate values for subnets and security_groups in example (terraform-aws-modules#63)
1 parent dd979d4 commit fd7a25b

File tree

1 file changed

+2
-3
lines changed
  • examples/with-ecs-scheduling

1 file changed

+2
-3
lines changed

examples/with-ecs-scheduling/main.tf

+2-3
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ module "eventbridge" {
6363

6464
network_configuration = {
6565
assign_public_ip = true
66-
subnets = data.aws_subnet_ids.default
67-
security_groups = data.aws_security_group.default
66+
subnets = data.aws_subnet_ids.default.ids
67+
security_groups = [data.aws_security_group.default.arn]
6868
}
6969
}
7070
}
@@ -89,7 +89,6 @@ resource "aws_ecs_service" "hello_world" {
8989
name = "hello_world-${random_pet.this.id}"
9090
cluster = module.ecs.ecs_cluster_id
9191
task_definition = aws_ecs_task_definition.hello_world.arn
92-
launch_type = "FARGATE"
9392

9493
desired_count = 1
9594

0 commit comments

Comments
 (0)