Skip to content

Commit

Permalink
fix service discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 8, 2022
1 parent c04020a commit 008050d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vpc-interface-endpoint/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ locals {
# https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpoints.html

data "aws_vpc_endpoint_service" "interface_endpoint" {
service = local.service
service = local.full_service_parts[0] == "com" ? local.service : null
service_name = local.full_service_parts[0] != "com" ? local.service : null
filter {
name = "service-type"
values = ["Interface"]
Expand Down

0 comments on commit 008050d

Please sign in to comment.