Skip to content

Commit a5cfef8

Browse files
committed
feat: add new region to ecs
1 parent 2aca935 commit a5cfef8

File tree

1 file changed

+7
-10
lines changed
  • packages/artillery/lib/platform/aws-ecs/legacy

1 file changed

+7
-10
lines changed

packages/artillery/lib/platform/aws-ecs/legacy/util.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
const _debug = require('debug')('artillery:util');
42

53
const chalk = require('chalk');
@@ -33,7 +31,8 @@ const supportedRegions = [
3331
'il-central-1',
3432
'sa-east-1',
3533
'cn-north-1',
36-
'cn-northwest-1'
34+
'cn-northwest-1',
35+
'ap-southeast-5'
3736
];
3837

3938
const getAccountId = require('../../aws/aws-get-account-id');
@@ -60,9 +59,7 @@ async function getBucketName() {
6059
}
6160

6261
function formatError(err) {
63-
return (
64-
`${chalk.red('Error')}: ${err.message}${err.code ? ` (${err.code})` : ''}`
65-
);
62+
return `${chalk.red('Error')}: ${err.message}${err.code ? ` (${err.code})` : ''}`;
6663
}
6764

6865
async function listAllObjectsWithPrefix(bucketName, prefix) {
@@ -77,11 +74,11 @@ async function listAllObjectsWithPrefix(bucketName, prefix) {
7774
MaxKeys: 1000
7875
}
7976
);
80-
for await (const page of paginator) {
81-
if (page.Contents) {
82-
allObjects.push(...page.Contents);
83-
}
77+
for await (const page of paginator) {
78+
if (page.Contents) {
79+
allObjects.push(...page.Contents);
8480
}
81+
}
8582

8683
return allObjects;
8784
}

0 commit comments

Comments
 (0)