diff --git a/.github/workflows/eks-setup.yaml b/.github/workflows/eks-setup.yaml index 7d8c96c..b7621d1 100644 --- a/.github/workflows/eks-setup.yaml +++ b/.github/workflows/eks-setup.yaml @@ -47,8 +47,11 @@ jobs: - name: Get EC2 Public IP id: get_public_ip run: | - echo "EC2_PUBLIC_IP=$(terraform output -raw ec2_public_ip)" >> $GITHUB_ENV - echo "EC2_PUBLIC_IP"=${{ env.EC2_PUBLIC_IP }} + #echo "EC2_PUBLIC_IP=$(terraform output -raw ec2_public_ip)" >> $GITHUB_ENV + #echo "EC2_PUBLIC_IP"=${{ env.EC2_PUBLIC_IP }} + terraform output -json > tf_output.json + EC2_PUBLIC_IP=$(jq -r '.ec2_public_ip.value' tf_output.json) + echo "EC2_PUBLIC_IP=$EC2_PUBLIC_IP" >> $GITHUB_ENV InstallTools: runs-on: ubuntu-latest