-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
no identity-based policy allows the elasticloadbalancing:AddTags #1426
Comments
Strangely Im also getting this error. Its working in other environments but not in a new one I just spun up this morning. |
It seems like I submitted this issue in the wrong repo. Sorry. Will submit a new one in AWS Load Balancer Controller Repo. |
Submitted to the correct repo : kubernetes-sigs/aws-load-balancer-controller#3044 |
Did you find any workaround of this issue? I am facing this issue with aws-load-balancer-controller helm chart 1.4.8 v2.4.7 provisioned using v4.32.1 of https://github.com/aws-ia/terraform-aws-eks-blueprints Ingress nginx failed to provision NLB because of this issue. (I had to reinstall ingress nginx to after upgrading eks from 1.23 to 1.27 and now I am stuck with this) |
I had to temporarily remove this conditional block from clustername-lb-irsa IAM policy as a workaround to provision ingress nginx NLB
Reference: Edit: As per this comment |
This is still very much an issue and should be reopened, I used the same workaround to fix this. |
aws-ia/terraform-aws-eks-blueprints-addons#200 can be used to track this issue. Not sure weather the fix will be back ported to the v4 blueprints or not. |
Today also faced this issue |
I am also facing this issue when installing the Load Balancer Controller AddOn via EKS blueprints today. |
Tracking this in aws-ia/terraform-aws-eks-blueprints-addons#200 |
also ran into this with same versions as mentioned today |
ran into the same issue |
+1 - battling this issue w/ deployment details:
|
ran into the same issue today, I have two env,one is using LBC 2.4.7,another one using 2.6.0. They are using same policy,but version 2.6.0 has this error |
in aws-ia/terraform-aws-eks-blueprints-addons#229 we have re-aligned the IAM policy with the policy specified in https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/docs/install/iam_policy.json |
iam_policy.json: |
eks version v1.27.4-eks-2d98532 |
Description
The current IAM policy published in the AWS Doc and AWS Load Balancer Controller GitHub page has incompatible definitions in it. This causes AWS Load Balancer Controller failing in provisioining an ELB due to some Addtag errors. Seems identical to this previous GitHub issue.
Versions
Module Version [Required]:
AWS Load Balancer controller 2.4.4 (also tested with 2.4.4)
EKS v1.24
Reproduction Code [Required]
Expected behaviour
For AWS Load Balancer Controller to provision an NLB.
Actual behaviour
No NLBs are provisioned. And AWS Load Balancer Controller generates the following error.
{"level":"error","ts":1676040723.3378003,"logger":"controller.service","msg":"Reconciler error","name":"frontendnlb","namespace":"workshop","error":"AccessDenied: User: arn:aws:sts::xxxxxxxxxxxx:assumed-role/eksctl-mycluster-addon-iamserviceaccount-kub-Role1-ALZQNS3HQWFQ/1676040699752964147 is not authorized to perform: elasticloadbalancing:AddTags on resource: arn:aws:elasticloadbalancing:eu-west-2:578334270511:targetgroup/k8s-workshop-frontend-8a6a890206/* because no identity-based policy allows the elasticloadbalancing:AddTags action\n\tstatus code: 403, request id: 4ee09784-239c-4afb-94f1-958b50134d8c"}
The text was updated successfully, but these errors were encountered: