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

Add a user to the group #1142

Closed
RomanButsiy opened this issue Jan 22, 2021 · 2 comments · Fixed by #1149
Closed

Add a user to the group #1142

RomanButsiy opened this issue Jan 22, 2021 · 2 comments · Fixed by #1149

Comments

@RomanButsiy
Copy link

Hi there,

Terraform Version

$ terraform -v
Terraform v0.14.4
+ provider registry.terraform.io/terraform-provider-openstack/openstack v1.35.0

Affected Resources

  • openstack_identity_user_v3
  • openstack_identity_group_v3

Terraform Configuration Files

data "openstack_identity_user_v3" "user" {
  name = "admin"
}

resource "openstack_identity_group_v3" "group_1" {
  name = "test"
  description = "test"
}

Is it possible to add a user admin to the group test using terraform?

Thanks

@kayrus
Copy link
Collaborator

kayrus commented Jan 22, 2021

@RomanButsiy not yet. The support should be added to gophercloud first: https://github.com/gophercloud/gophercloud
UPD: actually it is already implemented: https://pkg.go.dev/github.com/gophercloud/gophercloud/openstack/identity/v3/users#AddToGroup
So it can be implemented in this provider.

@RomanButsiy
Copy link
Author

@kayrus Thank you for the quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants