diff --git a/aws/validators.go b/aws/validators.go index 526eb613492..a08f9b3b4db 100644 --- a/aws/validators.go +++ b/aws/validators.go @@ -419,6 +419,10 @@ func validateElbName(v interface{}, k string) (ws []string, errors []error) { errors = append(errors, fmt.Errorf( "%q cannot end with a hyphen: %q", k, value)) } + if strings.HasPrefix(value, "internal-") { + errors = append(errors, fmt.Errorf( + "%q cannot begin with `internal-`: %q", k, value)) + } return }