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

was iam group membership for existing group in AWS #14880

Open
umarkhan207322405 opened this issue Aug 27, 2020 · 1 comment
Open

was iam group membership for existing group in AWS #14880

umarkhan207322405 opened this issue Aug 27, 2020 · 1 comment
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/iam Issues and PRs that pertain to the iam service.

Comments

@umarkhan207322405
Copy link

I am trying to create a terraform script that'll create a user and adds him to an existing group for which I have not found documentation on Hashicorp website since it only provides the documentation for new group creation alongside the user/users.

I would appreciate your help

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 27, 2020
@breathingdust breathingdust added question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/iam Issues and PRs that pertain to the iam service. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 16, 2021
@ljluestc
Copy link

ljluestc commented Nov 4, 2023

resource "aws_iam_user" "example_user" {
  name = "example-user"
}

resource "aws_iam_group_membership" "example_membership" {
  name = "example-group-membership"
  users = [aws_iam_user.example_user.name]
  group = "existing-group-name" # Replace with the name of your existing IAM group
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/iam Issues and PRs that pertain to the iam service.
Projects
None yet
Development

No branches or pull requests

3 participants