Skip to content

Commit

Permalink
nick-invision/retry@v2 Became nick-fields/retry@v2 Fix ECSEC2LaunchDa… (
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon authored Jan 20, 2023
1 parent 34cae82 commit 4720a26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/integrationTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ jobs:
if terraform apply --auto-approve \
-var="ssh_key_value=${PRIVATE_KEY}" -var="github_test_repo=${{env.CWA_GITHUB_TEST_REPO_URL}}" \
-var="cwa_github_sha=${GITHUB_SHA}" -var="install_agent=${{ matrix.arrays.installAgentCommand }}" \
-var="github_test_repo_branch=${{env.CWA_GITHUB_TEST_REPO_BRANCH}}" \
-var="ec2_instance_type=${{ matrix.arrays.instanceType }}" \
-var="user=${{ matrix.arrays.username }}" \
-var="ami=${{ matrix.arrays.ami }}" \
Expand Down Expand Up @@ -548,14 +549,15 @@ jobs:
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 30
timeout_minutes: 60
retry_wait_seconds: 5
command: |
cd terraform/ec2/linux
terraform init
if terraform apply --auto-approve \
-var="ssh_key_value=${PRIVATE_KEY}" -var="github_test_repo=${{env.CWA_GITHUB_TEST_REPO_URL}}" \
-var="cwa_github_sha=${GITHUB_SHA}" -var="install_agent=${{ matrix.arrays.installAgentCommand }}" \
-var="github_test_repo_branch=${{env.CWA_GITHUB_TEST_REPO_BRANCH}}" \
-var="ec2_instance_type=${{ matrix.arrays.instanceType }}" \
-var="user=${{ matrix.arrays.username }}" \
-var="ami=${{ matrix.arrays.ami }}" \
Expand Down Expand Up @@ -717,7 +719,7 @@ jobs:

- name: Terraform apply
if: steps.ecs-ec2-launch-daemon-integration-test.outputs.cache-hit != 'true'
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 15
Expand All @@ -738,7 +740,7 @@ jobs:
- name: Terraform destroy
if: ${{ cancelled() && steps.ecs-ec2-launch-integration-test.outputs.cache-hit != 'true' }}
uses: nick-invision/retry@v2
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 8
Expand Down

0 comments on commit 4720a26

Please sign in to comment.