Skip to content

Commit 9750d47

Browse files
committed
test: set region in e2e test setup
1 parent c64bbc4 commit 9750d47

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/e2e/get-integ-test-resources.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ const { ensureTestStack } = require("./ensure-test-stack");
77
const { deleteStaleChangesets } = require("./delete-stale-changesets");
88

99
exports.getIntegTestResources = async () => {
10-
const cloudformation = new CloudFormationClient({});
11-
const region = await cloudformation.config.region();
10+
const region = "us-west-2";
11+
const cloudformation = new CloudFormationClient({
12+
region,
13+
});
1214
const stackName = "SdkReleaseV3IntegTestResourcesStack";
1315

1416
await deleteStaleChangesets(cloudformation, stackName);
@@ -32,9 +34,9 @@ exports.getIntegTestResources = async () => {
3234
(resource) => resource.ResourceType === "AWS::S3::MultiRegionAccessPoint"
3335
)[0].PhysicalResourceId;
3436

35-
const sts = new STSClient({});
37+
const sts = new STSClient({ region });
3638
const { Account: AccountId } = await sts.send(new GetCallerIdentityCommand({}));
37-
const s3Control = new S3ControlClient({ region: "us-west-2" });
39+
const s3Control = new S3ControlClient({ region });
3840
const { AccessPoints } = await s3Control.send(new ListMultiRegionAccessPointsCommand({ AccountId }));
3941
const { Alias } = AccessPoints.find((accesspoint) => accesspoint.Name === multiRegionAccessPointName);
4042
const mrapArn = `arn:aws:s3::${AccountId}:accesspoint/${Alias}`;

0 commit comments

Comments
 (0)