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 resource "aws_iam_policy_attachment" to attach a managed policy to users, roles, or groups #2395

Merged
merged 12 commits into from
Jun 29, 2015

Conversation

pgray
Copy link
Contributor

@pgray pgray commented Jun 18, 2015

This implements #2100

It follows similar logic as #2273

It attaches a managed policy to users, roles, and/or groups.

@scalp42
Copy link
Contributor

scalp42 commented Jun 19, 2015

👍 thanks a lot @graycoder

@ctiwald
Copy link
Contributor

ctiwald commented Jun 21, 2015

👍

@dalehamel
Copy link

@catsby anyone from hashicorp able to review this? This is a feature we really need as well, so we're grabbing this branch to play with.

roles := expandStringList(d.Get("roles").(*schema.Set).List())
groups := expandStringList(d.Get("groups").(*schema.Set).List())

if users == nil && roles == nil && groups == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method expandStringList calls make([]*string, ...) and returns the result. Even that slice is empty, it's not nil, so this block will never evaluate to true, yeah?

@catsby
Copy link
Contributor

catsby commented Jun 23, 2015

Some nit-picks, otherwise seems good 👍

@pgray
Copy link
Contributor Author

pgray commented Jun 29, 2015

I believe I took care of all the concerns, but please let me know if anyone sees anything else 😺

@catsby
Copy link
Contributor

catsby commented Jun 29, 2015

Thanks @graycoder , this looks good to me

catsby added a commit that referenced this pull request Jun 29, 2015
Add resource "aws_iam_policy_attachment" to attach a managed policy to users, roles, or groups
@catsby catsby merged commit 7917870 into hashicorp:master Jun 29, 2015
@ghost
Copy link

ghost commented May 1, 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 May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants