Skip to content

Commit

Permalink
adjust Get EC2 Public IP step
Browse files Browse the repository at this point in the history
  • Loading branch information
Oloruntobi Olurombi committed Aug 29, 2024
1 parent 2ebc162 commit 1a2f5ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/eks-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a2f5ae

Please sign in to comment.