-
Notifications
You must be signed in to change notification settings - Fork 50
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 policies for sns topic tagging #202
Conversation
Signed-off-by: Alina Buzachis <[email protected]>
@alinabuzachis This is fine in as much as it applies to SNS topics in our account, but the problem is that this is not enough to allow for |
Tags are a bit weird, there shouldn't be a need for permissions on the other side, because you simply can't access someone else's tags, but you can attach tags that you would see to them. |
With these changes applied, I'm getting a |
Oh, Yeah these tagging permissions are in the policy explicitly limited to the CI account. In the |
Signed-off-by: Alina Buzachis <[email protected]>
…chis/aws-terminator into sns_topic_tag_policies
Done, thanks! |
Signed-off-by: Alina Buzachis <[email protected]>
…chis/aws-terminator into sns_topic_tag_policies
8c10abe
to
ea28667
Compare
This is still broken for me, with the same authorization error. I also tried listing tags on the third party topic as a user with full admin privileges, and this fails in the same way. I guess I don't understand how this is supposed to work. It seems to me that all the IAM permission is doing is allowing the CI account to use SNS:ListTags on that third party resource, but that resource still would have to allow us to do so. @tremble you mention it's possible to attach tags to a third party topic. Are you doing this by just calling |
I've done it with other resources before. Having had a poke about, it looks like it doesn't work for these Topics, it's probably missing a permission on the AWS side somewhere (a permission in account 806199016981). |
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-restrictions
|
@alinabuzachis Looking at ansible-collections/community.aws#972 (which I just rebased), the cross-account tagging tests have been removed, so if this PR's rebased we should be able to the this and 972 merged and closed out. |
Closing this since I believe it is superseded by #260. |
SNS tagging needed by ansible-collections/community.aws#972