diff --git a/.github/workflows/lambda-runner-binaries-syncer.yml b/.github/workflows/lambda-runner-binaries-syncer.yml index 5d79154c2f..86f849d46f 100644 --- a/.github/workflows/lambda-runner-binaries-syncer.yml +++ b/.github/workflows/lambda-runner-binaries-syncer.yml @@ -21,7 +21,7 @@ jobs: working-directory: modules/runner-binaries-syncer/lambdas/runner-binaries-syncer steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: yarn install - name: Run prettier diff --git a/.github/workflows/lambda-runners.yml b/.github/workflows/lambda-runners.yml index 0728d21c80..683d032ee3 100644 --- a/.github/workflows/lambda-runners.yml +++ b/.github/workflows/lambda-runners.yml @@ -21,7 +21,7 @@ jobs: working-directory: modules/runners/lambdas/runners steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: yarn install - name: Run prettier diff --git a/.github/workflows/lambda-webhook.yml b/.github/workflows/lambda-webhook.yml index 062670e5b0..682793a594 100644 --- a/.github/workflows/lambda-webhook.yml +++ b/.github/workflows/lambda-webhook.yml @@ -21,7 +21,7 @@ jobs: working-directory: modules/webhook/lambdas/webhook steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: yarn install - name: Run prettier diff --git a/.github/workflows/packer-build.yml b/.github/workflows/packer-build.yml index 5704a83bf3..1985cd0076 100644 --- a/.github/workflows/packer-build.yml +++ b/.github/workflows/packer-build.yml @@ -27,7 +27,7 @@ jobs: working-directory: images/${{ matrix.image }} steps: - name: "Checkout" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: packer init run: packer init . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5aa5d2b48..c80075ac55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: env: LAMBDA: ${{ matrix.lambda }} run: echo ::set-output name=name::${LAMBDA##*/} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Add zip run: apt update && apt install zip - name: Build dist @@ -39,7 +39,7 @@ jobs: needs: prepare steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/semantic-check.yml b/.github/workflows/semantic-check.yml index a266070197..90abeeea50 100644 --- a/.github/workflows/semantic-check.yml +++ b/.github/workflows/semantic-check.yml @@ -16,7 +16,7 @@ jobs: name: Semantic Commit Message Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: amannn/action-semantic-pull-request@v4 name: Check PR for Semantic Commit Message diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index fe428a9f1b..2e48462deb 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -21,7 +21,7 @@ jobs: image: hashicorp/terraform:${{ matrix.terraform }} steps: - name: "Checkout" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "Fake zip files" # Validate will fail if it cannot find the zip files run: | touch modules/webhook/lambdas/webhook/webhook.zip @@ -54,7 +54,7 @@ jobs: container: image: hashicorp/terraform:${{ matrix.terraform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: terraform init run: terraform init -get -backend=false -input=false - if: contains(matrix.terraform, '1.1.') diff --git a/modules/runners/lambdas/runners/src/aws/runners.ts b/modules/runners/lambdas/runners/src/aws/runners.ts index 20a2d93770..3d095c6dff 100644 --- a/modules/runners/lambdas/runners/src/aws/runners.ts +++ b/modules/runners/lambdas/runners/src/aws/runners.ts @@ -203,6 +203,8 @@ export async function createRunner(runnerParameters: RunnerInputParameters): Pro logger.info('Created instance(s): ', instances.join(','), LogFields.print()); const ssm = new SSM(); + const delay = async (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); + for (const instance of instances) { await ssm .putParameter({ @@ -211,5 +213,6 @@ export async function createRunner(runnerParameters: RunnerInputParameters): Pro Type: 'SecureString', }) .promise(); + await delay(25); } }