Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 68e85dd

Browse files
committed
Update regions to use in testing
Limit to those where Gruntwork's testing AWS account has ACM certs
1 parent 3ab57da commit 68e85dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/terratest_helpers.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ const savedAwsRegion = "AwsRegion"
2121
const savedUniqueId = "UniqueId"
2222

2323
func getRandomAwsRegion(t *testing.T) string {
24-
// Exclude regions where Gruntwork's accounts don't have ACM certs for testing
25-
excludedRegions := []string{
26-
"ap-northeast-2",
27-
"ap-southeast-1",
28-
"ap-southeast-2",
24+
// Include regions where Gruntwork's accounts have ACM certs for testing
25+
includedRegions := []string{
26+
"eu-west-1",
2927
"eu-central-1",
28+
"us-east-1",
29+
"us-east-2",
3030
"us-west-1",
3131
"us-west-2",
32-
"sa-east-1", // Amazon Linux 2 doesn't seem to be available in this region
33-
"eu-north-1", // Many instance types are not available in this region
32+
"ap-northeast-1",
33+
"ca-central-1",
3434
}
3535

36-
return aws.GetRandomRegion(t, nil, excludedRegions)
36+
return aws.GetRandomRegion(t, includedRegions, nil)
3737
}
3838

3939
func buildCouchbaseWithPacker(t *testing.T, builderName string, baseAmiName string, awsRegion string, folderPath string, edition string) string {

0 commit comments

Comments
 (0)