Skip to content

Commit

Permalink
fix(bucket-utils): small fix for async race condition
Browse files Browse the repository at this point in the history
ensure that deletePublicAccessBlock is allowed to run before moving on from bucket creation
  • Loading branch information
benheymink authored and Shereef committed Apr 28, 2023
1 parent c8c6953 commit 964f0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bucket-utils.js
Expand Up @@ -96,7 +96,7 @@ function createBucket(aws, bucketName) {
};

return aws.request('S3', 'createBucket', params).then(() => {
aws.request('S3', 'deletePublicAccessBlock', {
return aws.request('S3', 'deletePublicAccessBlock', {
Bucket: bucketName
});
});
Expand Down

0 comments on commit 964f0b3

Please sign in to comment.