From 68bb58db355899e710eaed0f3b3f44dfd558e3e7 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 28 Jun 2016 12:18:36 +0100 Subject: [PATCH] aws: Add new region (Mumbai) (#7383) * aws: Sort and format list of valid regions * aws: Add new region (ap-south-1 / Mumbai) https://aws.amazon.com/about-aws/whats-new/2016/06/announcing-the-aws-asia-pacific-mumbai-region/ --- builtin/providers/aws/config.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/config.go b/builtin/providers/aws/config.go index 25839af0b6..1373d7c40b 100644 --- a/builtin/providers/aws/config.go +++ b/builtin/providers/aws/config.go @@ -328,9 +328,21 @@ func (c *Config) Client() (interface{}, error) { // ValidateRegion returns an error if the configured region is not a // valid aws region and nil otherwise. func (c *Config) ValidateRegion() error { - var regions = [12]string{"us-east-1", "us-west-2", "us-west-1", "eu-west-1", - "eu-central-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", - "ap-northeast-2", "sa-east-1", "cn-north-1", "us-gov-west-1"} + var regions = [13]string{ + "ap-northeast-1", + "ap-northeast-2", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "cn-north-1", + "eu-central-1", + "eu-west-1", + "sa-east-1", + "us-east-1", + "us-gov-west-1", + "us-west-1", + "us-west-2", + } for _, valid := range regions { if c.Region == valid {