Skip to content

Commit

Permalink
Merge pull request #738 from hendryanw/bugfix/awsloadbalancercontroll…
Browse files Browse the repository at this point in the history
…eraddonpolicy

Update AWS Load Balancer Controller Addon IAM Policy to fix permission issue during ALB ingress creation
  • Loading branch information
shapirov103 authored Jun 26, 2023
2 parents 7879075 + 1232351 commit 1121f52
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/addons/aws-loadbalancer-controller/iam-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,28 @@ export const AwsLoadbalancerControllerIamPolicy = (partition: string) => {
}
}
},
{
"Effect": "Allow",
"Action": [
"elasticloadbalancing:AddTags"
],
"Resource": [
`arn:${partition}:elasticloadbalancing:*:*:targetgroup/*/*`,
`arn:${partition}:elasticloadbalancing:*:*:loadbalancer/net/*/*`,
`arn:${partition}:elasticloadbalancing:*:*:loadbalancer/app/*/*`
],
"Condition": {
"StringEquals": {
"elasticloadbalancing:CreateAction": [
"CreateTargetGroup",
"CreateLoadBalancer"
]
},
"Null": {
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
Expand Down

0 comments on commit 1121f52

Please sign in to comment.