terraform-provider-ibm icon indicating copy to clipboard operation
terraform-provider-ibm copied to clipboard

Support for IBM Cloud access management tags

Open data-henrik opened this issue 4 years ago • 6 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

IBM Cloud allows to tag resources for access management. They can be defined and assigned. Support is missing.

https://cloud.ibm.com/apidocs/tagging#create-tag

data-henrik avatar May 11 '21 11:05 data-henrik

Seem like #2472 will add it

data-henrik avatar May 11 '21 14:05 data-henrik

It seems to me that only user tags, but not access tags can be created. Note that access tags need to be created before attaching them. With the mandatory resource_id it is not possible create them without attaching. Attaching a non-existent access tag gives an error and does not create it.

data-henrik avatar May 18 '21 14:05 data-henrik

Additionally, it seems like it's not possible to define an ibm_iam_access_group_policy which controls access by tag using Terraform.

willholley avatar Jun 28 '21 15:06 willholley

My understanding is that the IBM Cloud plugin only models the resource-tag relation. It does not model the tag itself. In fact you can manage attaching/detaching tags on a resource, but you cannot create/list/delete tags in an account (create is the most important because it is required for access management tags. User tags don't need to be created in advance because the system does that automatically).
Wouldn't be better to define a new resource e.g. ibm_iam_access_tag to apply/destroy access management tags?

mkrudele avatar Jan 22 '22 09:01 mkrudele

Any progress?

data-henrik avatar Jul 11 '22 16:07 data-henrik

@hkantare @kavya498 any chance to get #3321 merged?

l2fprod avatar Aug 31 '22 18:08 l2fprod