Skip to content

Commit

Permalink
Merge pull request #31 from ranikamadurawe/main-fix
Browse files Browse the repository at this point in the history
Update IAM policy to fix bug in IAM Policy in EKS LB
  • Loading branch information
ranikamadurawe authored Aug 9, 2023
2 parents ba4861d + 9efae83 commit c3c57d6
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions modules/aws/EKS-Cluster/iam_role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,30 @@ resource "aws_iam_policy" "cluster_loadbalancer_policy" {
}
},
{
Effect : "Allow",
Action : [
"Effect" : "Allow",
"Action" : [
"elasticloadbalancing:AddTags"
],
"Resource" : [
"arn:aws:elasticloadbalancing:*:*:targetgroup/*/*",
"arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/*",
"arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
],
"Condition" : {
"StringEquals" : {
"elasticloadbalancing:CreateAction" : [
"CreateTargetGroup",
"CreateLoadBalancer"
]
},
"Null" : {
"aws:RequestTag/elbv2.k8s.aws/cluster" : "false"
}
}
},
{
"Effect" : "Allow",
"Action" : [
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:DeregisterTargets"
],
Expand Down

0 comments on commit c3c57d6

Please sign in to comment.