From 5c93b0c108c0e0f7e29c8797cc7fc1129d9e605f Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 24 Jul 2017 14:43:22 +1000 Subject: [PATCH] Fix restriction on length of `name_prefix` for `aws_iam_server_certificate` Currently `name_prefix` is restricted to 30 characters, which is unnecessarily prohibitive. --- aws/data_source_aws_iam_server_certificate.go | 4 ++-- aws/resource_aws_iam_server_certificate.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aws/data_source_aws_iam_server_certificate.go b/aws/data_source_aws_iam_server_certificate.go index c4bf8bd2d44..854bc39b442 100644 --- a/aws/data_source_aws_iam_server_certificate.go +++ b/aws/data_source_aws_iam_server_certificate.go @@ -38,9 +38,9 @@ func dataSourceAwsIAMServerCertificate() *schema.Resource { ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if len(value) > 30 { + if len(value) > 102 { errors = append(errors, fmt.Errorf( - "%q cannot be longer than 30 characters, name is limited to 128", k)) + "%q cannot be longer than 102 characters, name is limited to 128", k)) } return }, diff --git a/aws/resource_aws_iam_server_certificate.go b/aws/resource_aws_iam_server_certificate.go index da402ce2cb6..5a180f62167 100644 --- a/aws/resource_aws_iam_server_certificate.go +++ b/aws/resource_aws_iam_server_certificate.go @@ -76,9 +76,9 @@ func resourceAwsIAMServerCertificate() *schema.Resource { ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(string) - if len(value) > 30 { + if len(value) > 102 { errors = append(errors, fmt.Errorf( - "%q cannot be longer than 30 characters, name is limited to 128", k)) + "%q cannot be longer than 102 characters, name is limited to 128", k)) } return },