Skip to content

scaleway_iam_group_membership does not manage the addition of multiple users or applications simultaneously. #3122

Open
@thecicco

Description

@thecicco

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

Terraform Version

Terraform v1.11.4

Affected Resource(s)

Resource: scaleway_iam_group_membership

Terraform Configuration Files

resource "scaleway_iam_group_membership" "members" {
  for_each = module.users
  group_id = "3829d91d-d782-4764-b480-d84838717166"  
  user_id  = each.value.user_id
}

Debug Output

https://gist.github.com/thecicco/3174d78bd56abad0aede978f158af2ef

Expected Behavior

As stated in the documentation for the scaleway_iam_group_membership resource, it should be possible to add multiple users to a group using a for_each loop.

Actual Behavior

It only adds the first user from the locals list and then fails:


│ Error: scaleway-sdk-go: resource group with ID 3829d91d-d782-4764-b480-d84838717166 is in a transient state: updating

│ with scaleway_iam_group_membership.members["user"],
│ on main.tf line 81, in resource "scaleway_iam_group_membership" "members":
│ 81: resource "scaleway_iam_group_membership" "members" {

Steps to Reproduce

  1. terraform apply

Metadata

Metadata

Assignees

Labels

bugiamIAM issues, bugs and feature requestspriority:highestBugs filled by customers, security issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions