Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 8, 2022
1 parent 3ea50f2 commit c595a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpc-interface-endpoint/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ locals {
region = data.aws_region.current.name

service_parts = split(".", var.service)
service = length(local.service_parts) == 1 ? format("com.amazonaws.%v.%v", local.region, var.service) : var.service
service = length(local.service_parts) <= 2 ? format("com.amazonaws.%v.%v", local.region, var.service) : var.service
full_service_parts = split(".", local.service)

# short_service = length(regexall("^com.amazonaws", var.service)) == 0 ? var.service : replace(local.service, format("com.amazonaws.%v.", local.region), "")
Expand Down

0 comments on commit c595a03

Please sign in to comment.