Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Enable aws-cn by setting the default partition correctly #1042

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func NewRootCommand() *cobra.Command {
awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID
case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID:
awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID
case endpoints.CnNorth1RegionID, endpoints.CnNorthwest1RegionID:
awsutil.DefaultAWSPartitionID = endpoints.AwsCnPartitionID
default:
if config.CustomEndpoints.GetRegion(defaultRegion) == nil {
err = fmt.Errorf("The custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion)
Expand Down
Loading