diff --git a/aws/eks/vpn.tf b/aws/eks/vpn.tf index 61009231f..abdb23a5c 100644 --- a/aws/eks/vpn.tf +++ b/aws/eks/vpn.tf @@ -95,7 +95,8 @@ resource "aws_acmpca_certificate" "client_vpn" { data "external" "get_pca_arn" { # Get the PCA ARN # Yes this is horrific. I'm sorry. - program = ["../../../../../../../scripts/getPCAARN.sh"] + program = [var.env == "production" ? "../../../../../../../../scripts/getPCAARN.sh" : "../../../../../../../scripts/getPCAARN.sh"] + } import {