Skip to content

Commit

Permalink
fix(fargate): wait for ECS worker role to be available (#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
InesNi committed Jun 24, 2024
1 parent 07bf7ae commit 630bbeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/artillery/lib/platform/aws-ecs/ecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const {

const getAccountId = require('../aws/aws-get-account-id');

const sleep = require('../../util/sleep');

class PlatformECS {
constructor(script, payload, opts, platformOpts) {
this.opts = opts;
Expand Down Expand Up @@ -233,6 +235,8 @@ async function createWorkerRole(accountId) {
})
.promise();

debug('Waiting for IAM role to be ready');
await sleep(30 * 1000);
return createRoleResp.Role.Arn;
}

Expand Down

0 comments on commit 630bbeb

Please sign in to comment.