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

provider/aws: Query all pages of group membership #6726

Merged
merged 1 commit into from
Aug 7, 2016

Conversation

miquella
Copy link
Contributor

By default, group membership queries return pages of 100 users at a
time. Because of this, if there are more than 100 users in an
aws_iam_group_membership resource, the resource always reports as
needing to be changed (because it only sees 100 of the users as
existing in the group).

The group membership now queries all pages.

Fixes #6722

By default, group membership queries return pages of 100 users at a
time. Because of this, if there are more than 100 users in an
aws_iam_group_membership resource, the resource always reports as
needing to be changed (because it only sees 100 of the users as
existing in the group).

The group membership now queries all pages.

Fixes hashicorp#6722
@miquella
Copy link
Contributor Author

@catsby: is there anything else you guys would like done with this pull request? I wasn't quite sure if you'd want an acceptance test that creates 101+ users or not (especially if the default of 100 was expected to ever change).

@sbarber
Copy link

sbarber commented Jun 1, 2016

👍

@stack72
Copy link
Contributor

stack72 commented Jul 25, 2016

Hi @miquella

I would love to see an acceptance test added here to show that we can cope with 101 users

We can use the count syntax and create a new test config for this

Paul

@stack72 stack72 added the waiting-response An issue/pull request is waiting for a response from the community label Jul 25, 2016
@stack72 stack72 self-assigned this Jul 25, 2016
@stack72 stack72 merged commit 0315d51 into hashicorp:master Aug 7, 2016
@stack72
Copy link
Contributor

stack72 commented Aug 7, 2016

Hi @miquella

thanks for the PR here, I have gone ahead and made the requested change above in commit 68991a5

The rest of it looks good!

Paul

@miquella miquella deleted the group-membership-pagination branch August 10, 2016 23:52
@ghost
Copy link

ghost commented Apr 23, 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 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group membership always shows as needing to be modified if there are > 100 users
4 participants