Skip to content

Commit

Permalink
aws-ecs-service fix service discovery arn (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrien authored Oct 2, 2019
1 parent cf3d830 commit 29f3f4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aws-ecs-service-fargate/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "aws_ecs_service" "job" {
dynamic "service_registries" {
for_each = aws_service_discovery_service.discovery[*]
content {
registry_arn = service_registries.arn
registry_arn = service_registries.value.arn
}
}

Expand Down Expand Up @@ -95,7 +95,7 @@ resource "aws_ecs_service" "unmanaged-job" {
dynamic "service_registries" {
for_each = aws_service_discovery_service.discovery[*]
content {
registry_arn = aws_service_discovery_service.discovery[0].arn
registry_arn = service_registries.value.arn
}
}

Expand Down
4 changes: 2 additions & 2 deletions aws-ecs-service/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "aws_ecs_service" "job" {
dynamic "service_registries" {
for_each = aws_service_discovery_service.discovery[*]
content {
registry_arn = service_registries.arn
registry_arn = service_registries.value.arn
}
}

Expand Down Expand Up @@ -100,7 +100,7 @@ resource "aws_ecs_service" "unmanaged-job" {
dynamic "service_registries" {
for_each = aws_service_discovery_service.discovery[*]
content {
registry_arn = aws_service_discovery_service.discovery[0].arn
registry_arn = service_registries.value.arn
}
}

Expand Down

0 comments on commit 29f3f4c

Please sign in to comment.