provider/aws: fix Elastic Beanstalk `cname_prefix` (#6653)

Fixes an issue where the `cname_prefix` attribute isn't correctly read
in some regions.
This commit is contained in:
David Harris 2016-05-13 04:27:56 -06:00 committed by Paul Stack
parent 2bca697a12
commit 0cb7496b3a
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ func resourceAwsElasticBeanstalkEnvironmentRead(d *schema.ResourceData, meta int
}
if tier == "WebServer" {
beanstalkCnamePrefixRegexp := regexp.MustCompile(`(^[^.]+).\w{2}-\w{4}-\d.elasticbeanstalk.com$`)
beanstalkCnamePrefixRegexp := regexp.MustCompile(`(^[^.]+).\w{2}-\w{4,9}-\d.elasticbeanstalk.com$`)
var cnamePrefix string
cnamePrefixMatch := beanstalkCnamePrefixRegexp.FindStringSubmatch(*env.CNAME)