adding new regions
@@ -625,47 +625,6 @@ func (s *AdStorage) SnapshotRestoreTargets(ctx context.Context, snapshot *blocks
func staticRegionToZones(region string) ([]string, error) {
switch region {
- case "australia",
- "australiasoutheast",
- "brazilsouth",
- "canadaeast",
- "centralindia",
- "eastasia",
- "japanwest",
- "northcentralus",
- "southcentralus",
- "southcentralusstage",
- "southcentralusstg",
- "southeastasiastage",
- "southindia",
- "uk",
- "ukwest",
- "westcentralus",
- "westindia",
- "westus",
- "uaecentral",
- "koreacentral",
- "southafricanorth",
- "germanynorth",
- "germanywestcentral",
- "switzerlandnorth",
- "norwayeast",
- "norwaywest",
- "koreasouth",
- "australiacentral2",
- "francesouth",
- "uaenorth",
- "switzerlandwest",
- "australiacentral",
- "southafricawest",
- "brazilsoutheast",
- "eastusstg",
- "eastus2euap",
- "westusstage",
- "westus2stage",
- "unitedstates",
- "canada":
- return nil, nil
case "centralus":
return []string{
"centralus-1",
@@ -738,6 +697,60 @@ func staticRegionToZones(region string) ([]string, error) {
"australiaeast-2",
"australiaeast-3",
}, nil
+ case "australiasoutheast",
+ "brazilsouth",
+ "canadaeast",
+ "centralindia",
+ "eastasia",
+ "japanwest",
+ "northcentralus",
+ "southcentralus",
+ "southindia",
+ "ukwest",
+ "westcentralus",
+ "westindia",
+ "westus",
+ "uaecentral",
+ "koreacentral",
+ "southafricanorth",
+ "germanynorth",
+ "germanywestcentral",
+ "switzerlandnorth",
+ "norwayeast",
+ "norwaywest",
+ "koreasouth",
+ "australiacentral2",
+ "francesouth",
+ "uaenorth",
+ "switzerlandwest",
+ "australiacentral",
+ "southafricawest",
+ "brazilsoutheast",
+ "eastus2stage",
+ "asia",
+ "asiapacific",
+ "australia",
+ "eastusstage",
+ "centralusstage",
+ "eastus2euap",
+ "centraluseuap",
+ "brazil",
+ "eastasiastage",
+ "europe",
+ "eastusstg",
+ "canada",
+ "global",
+ "india",
+ "japan",
+ "northcentralusstage",
+ "southcentralusstage",
+ "southcentralusstg",
+ "southeastasiastage",
+ "uk",
+ "unitedstates",
+ "westus2stage",
+ "westusstage":
+ return nil, nil
}
return nil, errors.New(fmt.Sprintf("cannot get availability zones for region %s", region))
}
