Skip to content
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

IAM user and group names should allow underscore #9679

Closed
bandesz opened this issue Oct 28, 2016 · 3 comments
Closed

IAM user and group names should allow underscore #9679

bandesz opened this issue Oct 28, 2016 · 3 comments

Comments

@bandesz
Copy link
Contributor

bandesz commented Oct 28, 2016

The #9584 changeset adds validation for the IAM user and group name, but the AWS official documentation is not correct and you can create users/groups with underscores in the name. This changeset will probably force some users to change names or not upgrade.

Terraform Version

Terraform v0.7.8-dev (3500630)

Affected Resource(s)

aws_iam_user
aws_iam_group

Terraform Configuration Files

resource "aws_iam_user" "some_user" {
    name = "some_user"
}
resource "aws_iam_group" "some_group" {
    name = "some_group"
}

Expected Behavior

Names with underscores should be allowed. (Even the username "_" is allowed)

Actual Behavior

Name validation fails.

Steps to Reproduce

terraform apply

References

@bandesz
Copy link
Contributor Author

bandesz commented Oct 28, 2016

I submitted a PR for this: #9684

@stack72
Copy link
Contributor

stack72 commented Oct 28, 2016

Closed via #9684

@ghost
Copy link

ghost commented Apr 21, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants