Skip to content

Commit

Permalink
fix: add 15s wait after an IAM role has been created
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 28, 2020
1 parent 261bc18 commit 4b6113c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/serverless-aws-iam-role/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const addRolePolicy = async ({ iam, name, policy }) => {
})
.promise();
}

return new Promise(resolve => {
setTimeout(resolve, 15000);
});
};

const removeRolePolicy = async ({ iam, name, policy }) => {
Expand Down

0 comments on commit 4b6113c

Please sign in to comment.