-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 CreateListner API to AddTags condition #3086
Conversation
|
Welcome @Reasonably! |
Hi @Reasonably. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Reasonably The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already list the iam permissions to tag the Listener and ListenerRule resources. This is the snippet:
{
"Effect": "Allow",
"Action": [
"elasticloadbalancing:AddTags",
"elasticloadbalancing:RemoveTags"
],
"Resource": [
"arn:aws:elasticloadbalancing:*:*:listener/net/*/*/*",
"arn:aws:elasticloadbalancing:*:*:listener/app/*/*/*",
"arn:aws:elasticloadbalancing:*:*:listener-rule/net/*/*/*",
"arn:aws:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
]
},
If you used the reference policies unmodified, you should not see iam permissions related errors. If you still do, then please let us know, we will work on the next troubleshooting steps.
This is aws-loadbalancer-controller error. And
this is cloudtrail log. It show the role don't have policy about AddTags on I tested on eks 1.24, aws-load-balancer-controller v2.4.4.
It is the iam I used. When I added |
@Reasonably, the extra policies aren't required for |
closing the PR since the changes are not required |
Issue
Fixes: #2692
Description
This PR related #3045 that updates the recommended IAM policy template to add an explicit elasticloadbalancing:AddTags permission for create resources.
I've got error when I use this recommend IAM Policy. I saw the error occurred on
CreateListener
.So I added the action to condition, it works. I think this action has to be added to recommendation.
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯