From fce562ba0bb287bd8c3f31b14f960de67844871e Mon Sep 17 00:00:00 2001 From: clint shryock Date: Wed, 17 Feb 2016 17:03:31 -0600 Subject: [PATCH] update name length --- .../providers/aws/resource_aws_iam_server_certificate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/resource_aws_iam_server_certificate.go b/builtin/providers/aws/resource_aws_iam_server_certificate.go index a00e80013e..c747df619c 100644 --- a/builtin/providers/aws/resource_aws_iam_server_certificate.go +++ b/builtin/providers/aws/resource_aws_iam_server_certificate.go @@ -58,9 +58,9 @@ func resourceAwsIAMServerCertificate() *schema.Resource { ConflictsWith: []string{"name_prefix"}, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if len(value) > 255 { + if len(value) > 128 { errors = append(errors, fmt.Errorf( - "%q cannot be longer than 255 characters", k)) + "%q cannot be longer than 128 characters", k)) } return }, @@ -72,9 +72,9 @@ func resourceAwsIAMServerCertificate() *schema.Resource { ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if len(value) > 100 { + if len(value) > 30 { errors = append(errors, fmt.Errorf( - "%q cannot be longer than 100 characters, name is limited to 128", k)) + "%q cannot be longer than 30 characters, name is limited to 128", k)) } return },