diff --git a/k8s-readwrite.tf b/k8s-readwrite.tf index 5c34341..14cce7f 100644 --- a/k8s-readwrite.tf +++ b/k8s-readwrite.tf @@ -301,5 +301,5 @@ resource "kubernetes_service" "hms_readwrite" { data "aws_lb" "k8s_hms_rw_lb" { count = var.hms_instance_type == "k8s" && var.enable_vpc_endpoint_services ? 1 : 0 - name = split("-", split(".", kubernetes_service.hms_readwrite.status.0.load_balancer.0.ingress.0.hostname).0).0 + name = split("-", split(".", kubernetes_service.hms_readwrite[0].status.0.load_balancer.0.ingress.0.hostname).0).0 }