Skip to content

Commit

Permalink
fix: Fixed inappropriate values for subnets and security_groups in ex…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza-Aziz authored Sep 21, 2022
1 parent dd979d4 commit fd7a25b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/with-ecs-scheduling/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ module "eventbridge" {

network_configuration = {
assign_public_ip = true
subnets = data.aws_subnet_ids.default
security_groups = data.aws_security_group.default
subnets = data.aws_subnet_ids.default.ids
security_groups = [data.aws_security_group.default.arn]
}
}
}
Expand All @@ -89,7 +89,6 @@ resource "aws_ecs_service" "hello_world" {
name = "hello_world-${random_pet.this.id}"
cluster = module.ecs.ecs_cluster_id
task_definition = aws_ecs_task_definition.hello_world.arn
launch_type = "FARGATE"

desired_count = 1

Expand Down

0 comments on commit fd7a25b

Please sign in to comment.