From 9e2a739de1ce92dfadb849ff6b66cd514e0cef24 Mon Sep 17 00:00:00 2001 From: musa-asad Date: Thu, 5 Dec 2024 02:45:14 -0500 Subject: [PATCH] Add SSH Keep Alive logic. --- .github/workflows/ec2-integration-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ec2-integration-test.yml b/.github/workflows/ec2-integration-test.yml index 95489d0f41..eb597a4a1b 100644 --- a/.github/workflows/ec2-integration-test.yml +++ b/.github/workflows/ec2-integration-test.yml @@ -79,6 +79,13 @@ jobs: - name: Verify Terraform version run: terraform --version + - name: Configure SSH Keep Alive + run: | + mkdir -p ~/.ssh + echo "Host * + ServerAliveInterval 240" > ~/.ssh/config + chmod 600 ~/.ssh/config + # nick-fields/retry@v2 starts at base dir - name: Terraform apply if: steps.cache_if_success.outputs.cache-hit != 'true'