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); } } diff --git a/modules/webhook/lambdas/webhook/package.json b/modules/webhook/lambdas/webhook/package.json index 9ce134659a..e860a19a54 100644 --- a/modules/webhook/lambdas/webhook/package.json +++ b/modules/webhook/lambdas/webhook/package.json @@ -24,7 +24,7 @@ "@types/node": "^18.0.1", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", - "@vercel/ncc": "0.34.0", + "@vercel/ncc": "0.36.0", "aws-sdk": "^2.1167.0", "body-parser": "^1.20.0", "eslint": "^7.32.0", diff --git a/modules/webhook/lambdas/webhook/yarn.lock b/modules/webhook/lambdas/webhook/yarn.lock index 45a2bb0830..56fd6bda0f 100644 --- a/modules/webhook/lambdas/webhook/yarn.lock +++ b/modules/webhook/lambdas/webhook/yarn.lock @@ -1737,10 +1737,10 @@ "@typescript-eslint/types" "4.33.0" eslint-visitor-keys "^2.0.0" -"@vercel/ncc@0.34.0": - version "0.34.0" - resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.34.0.tgz#d0139528320e46670d949c82967044a8f66db054" - integrity sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A== +"@vercel/ncc@0.36.0": + version "0.36.0" + resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.36.0.tgz#1f262b86fc4f0770bbc0fc1d331d5aaa1bd47334" + integrity sha512-/ZTUJ/ZkRt694k7KJNimgmHjtQcRuVwsST2Z6XfYveQIuBbHR+EqkTc1jfgPkQmMyk/vtpxo3nVxe8CNuau86A== abab@^2.0.3, abab@^2.0.5: version "2.0.5"