From 0cbb815d28f36b7dade142e301a48fd91fb0a084 Mon Sep 17 00:00:00 2001 From: Panagiotis Moustafellos Date: Wed, 1 Jul 2015 02:18:58 +0300 Subject: [PATCH] providers/aws: aws_elb: Allow alnum plus hyphen in name attribute --- builtin/providers/aws/resource_aws_elb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_elb.go b/builtin/providers/aws/resource_aws_elb.go index b76cc7131..07e7423a5 100644 --- a/builtin/providers/aws/resource_aws_elb.go +++ b/builtin/providers/aws/resource_aws_elb.go @@ -28,9 +28,9 @@ func resourceAwsElb() *schema.Resource { ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if !regexp.MustCompile(`^[0-9a-z-]+$`).MatchString(value) { + if !regexp.MustCompile(`^[0-9A-Za-z-]+$`).MatchString(value) { errors = append(errors, fmt.Errorf( - "only lowercase alphanumeric characters and hyphens allowed in %q", k)) + "only alphanumeric characters and hyphens allowed in %q", k)) } if len(value) > 32 { errors = append(errors, fmt.Errorf(