Skip to content

Commit

Permalink
add aws regions eu-south-1 and af-south-1
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlanigan committed Oct 21, 2020
1 parent 78e7a5a commit bff6818
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cloud/fallback-public-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ clouds:
endpoint: https://ec2.eu-central-1.amazonaws.com
eu-north-1:
endpoint: https://ec2.eu-north-1.amazonaws.com
eu-south-1:
endpoint: https://ec2.eu-south-1.amazonaws.com
af-south-1:
endpoint: https://ec2.af-south-1.amazonaws.com
ap-east-1:
endpoint: https://ec2.ap-east-1.amazonaws.com
ap-south-1:
Expand Down
4 changes: 4 additions & 0 deletions cloud/fallback_public_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ clouds:
endpoint: https://ec2.eu-central-1.amazonaws.com
eu-north-1:
endpoint: https://ec2.eu-north-1.amazonaws.com
eu-south-1:
endpoint: https://ec2.eu-south-1.amazonaws.com
af-south-1:
endpoint: https://ec2.af-south-1.amazonaws.com
ap-east-1:
endpoint: https://ec2.ap-east-1.amazonaws.com
ap-south-1:
Expand Down
4 changes: 3 additions & 1 deletion cmd/juju/commands/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,8 @@ eu-west-2
eu-west-3
eu-central-1
eu-north-1
eu-south-1
af-south-1
ap-east-1
ap-south-1
ap-southeast-1
Expand All @@ -2048,7 +2050,7 @@ func (s *BootstrapSuite) TestBootstrapInvalidRegion(c *gc.C) {
resetJujuXDGDataHome(c)
ctx, err := cmdtesting.RunCommand(c, s.newBootstrapCommand(), "aws/eu-west")
c.Assert(err, gc.ErrorMatches, `region "eu-west" for cloud "aws" not valid`)
c.Assert(cmdtesting.Stderr(ctx), gc.Equals, "Available cloud regions are ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2\n")
c.Assert(cmdtesting.Stderr(ctx), gc.Equals, "Available cloud regions are af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-1, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2\n")
c.Assert(cmdtesting.Stdout(ctx), gc.Equals, ``)
}

Expand Down

0 comments on commit bff6818

Please sign in to comment.