-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provider/aws: securitygroup name_prefix #4167
provider/aws: securitygroup name_prefix #4167
Conversation
value := v.(string) | ||
if len(value) > 100 { | ||
errors = append(errors, fmt.Errorf( | ||
"%q cannot be longer than 100 characters, name is limited to 255", k)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this error message is confusing, since we don't specify what 255 actually is. Some people will figure it out, but I don't think it adds anything. The API says the limit is 255 characters as well, so I'm not sure why we error if the length is over 100 (unless I'm misunderstanding something about Go's len
function)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just trying a punt in the dark and using a 100 character limit for the name_prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@catsby ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I see, the 255 is the combination of the two, my bad 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@catsby anything you want done with this? or can it be merged?
1 note on the error message, otherwise it looks good |
Sorry for the hold up, this looks good! |
provider/aws: securitygroup name_prefix
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fixes #4152
Adding the ability to generate a securitygroup name-prefix