Skip to content

Commit

Permalink
debug step added
Browse files Browse the repository at this point in the history
  • Loading branch information
Oloruntobi Olurombi committed Aug 27, 2024
1 parent 1545124 commit 9221c0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/eks-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Get EC2 Public IP
id: get_public_ip
run: echo "EC2_PUBLIC_IP=$(terraform output -raw ec2_public_ip)" >> $GITHUB_ENV

- name: Debug Public IP
run: echo "Public IP: ${{ env.EC2_PUBLIC_IP }}"

InstallTools:
runs-on: ubuntu-latest
Expand All @@ -80,6 +83,12 @@ jobs:
echo "${{ secrets.EC2_SSH_PRIVATE_KEY }}" > /tmp/private_key
chmod 600 /tmp/private_key
- name: Wait for EC2 Instance to be Ready
run: sleep 100

- name: Debug Public IP
run: echo "Public IP: ${{ env.EC2_PUBLIC_IP }}"

- name: SSH and Install AWS CLI and kubectl
run: |
ssh -o StrictHostKeyChecking=no -i /tmp/private_key ec2-user@${{ env.EC2_PUBLIC_IP }} << 'EOF'
Expand Down

0 comments on commit 9221c0f

Please sign in to comment.