diff --git a/aws/resource_aws_lb_target_group.go b/aws/resource_aws_lb_target_group.go index 867652dd29a..d45a77228a0 100644 --- a/aws/resource_aws_lb_target_group.go +++ b/aws/resource_aws_lb_target_group.go @@ -395,7 +395,7 @@ func validateAwsLbTargetGroupHealthCheckPath(v interface{}, k string) (ws []stri errors = append(errors, fmt.Errorf( "%q cannot be longer than 1024 characters: %q", k, value)) } - if !strings.HasPrefix(value, "/") { + if len(value) > 0 && !strings.HasPrefix(value, "/") { errors = append(errors, fmt.Errorf( "%q must begin with a '/' character: %q", k, value)) }