Skip to content

Commit

Permalink
Add ec2 eu-south-1 and af-south-1 regions to public clouds yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyworld committed Oct 14, 2020
1 parent 1de99a2 commit 58a3e3f
Show file tree
Hide file tree
Showing 3 changed files with 13 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,8 @@ 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
ap-east-1:
endpoint: https://ec2.ap-east-1.amazonaws.com
ap-south-1:
Expand All @@ -43,6 +45,8 @@ clouds:
endpoint: https://ec2.me-south-1.amazonaws.com
sa-east-1:
endpoint: https://ec2.sa-east-1.amazonaws.com
af-south-1:
endpoint: https://ec2.af-south-1.amazonaws.com
aws-china:
type: ec2
description: Amazon China
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,8 @@ 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
ap-east-1:
endpoint: https://ec2.ap-east-1.amazonaws.com
ap-south-1:
Expand All @@ -50,6 +52,8 @@ clouds:
endpoint: https://ec2.me-south-1.amazonaws.com
sa-east-1:
endpoint: https://ec2.sa-east-1.amazonaws.com
af-south-1:
endpoint: https://ec2.af-south-1.amazonaws.com
aws-china:
type: ec2
description: Amazon China
Expand Down
6 changes: 5 additions & 1 deletion cmd/juju/commands/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2085,6 +2085,7 @@ eu-west-2
eu-west-3
eu-central-1
eu-north-1
eu-south-1
ap-east-1
ap-south-1
ap-southeast-1
Expand All @@ -2094,14 +2095,17 @@ ap-northeast-2
ap-northeast-3
me-south-1
sa-east-1
af-south-1
`[1:])
}

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 58a3e3f

Please sign in to comment.