Skip to content

Commit

Permalink
Merge pull request #10046 from terraform-providers/rfd-lightsail-name
Browse files Browse the repository at this point in the history
Fix the lightsail name validation to reflect actual minimum length
  • Loading branch information
ryndaniels authored Sep 10, 2019
2 parents ee71f70 + 1aef483 commit 80b2994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_lightsail_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func resourceAwsLightsailInstance() *schema.Resource {
Required: true,
ForceNew: true,
ValidateFunc: validation.All(
validation.StringLenBetween(3, 255),
validation.StringLenBetween(2, 255),
validation.StringMatch(regexp.MustCompile(`^[a-zA-Z]`), "must begin with an alphabetic character"),
validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9_\-.]+[^._\-]$`), "must contain only alphanumeric characters, underscores, hyphens, and dots"),
),
Expand Down

0 comments on commit 80b2994

Please sign in to comment.