Skip to content

Commit

Permalink
Fix the lightsail name validation to reflect actual minimum length
Browse files Browse the repository at this point in the history
  • Loading branch information
ryndaniels committed Sep 9, 2019
1 parent b4efb0b commit 1aef483
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 1aef483

Please sign in to comment.