Skip to content

Commit

Permalink
provider/aws: fix Elastic Beanstalk cname_prefix (hashicorp#6653)
Browse files Browse the repository at this point in the history
Fixes an issue where the `cname_prefix` attribute isn't correctly read
in some regions.
  • Loading branch information
dharrisio authored and cristicalin committed May 24, 2016
1 parent 02e165b commit 784c492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 784c492

Please sign in to comment.