Skip to content

Commit

Permalink
Add AWS China availability zones mapping (#1098)
Browse files Browse the repository at this point in the history
Co-authored-by: Shikhar Mall <shikhar@kasten.io>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 29, 2021
1 parent aaa9048 commit b23a623
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/blockstorage/awsebs/awsebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,17 @@ func staticRegionToZones(region string) ([]string, error) {
"ap-northeast-3b",
"ap-northeast-3c",
}, nil
case "cn-north-1":
return []string{
"cn-north-1a",
"cn-north-1b",
}, nil
case "cn-northwest-1":
return []string{
"cn-northwest-1a",
"cn-northwest-1b",
"cn-northwest-1c",
}, nil
}
return nil, errors.New("cannot get availability zones for region")
}

0 comments on commit b23a623

Please sign in to comment.