Skip to content

Commit

Permalink
Merge pull request #1217 from joshuaspence/iam-np
Browse files Browse the repository at this point in the history
Fix restriction on length of `name_prefix` for `aws_iam_server_certificate`
  • Loading branch information
radeksimko authored Jul 24, 2017
2 parents 6142d58 + 5c93b0c commit 81cdac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aws/data_source_aws_iam_server_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_iam_server_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 81cdac0

Please sign in to comment.