Skip to content

Commit

Permalink
Bump aws-load-balancer-controller version and IAM policy content to…
Browse files Browse the repository at this point in the history
… v2.5.1 (#389)

* chore: Updated the content of the file "/tmp/updatecli/github/jenkins...

... -infra/aws/iam-roles-eks.tf"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/jenkins...

... -infra/aws/iam-nlb-policy.json"

Made with ❤️️ by updatecli

* chore: Updated the content of the file "/tmp/updatecli/github/jenkins...

... -infra/aws/iam-roles-eks.tf"

Made with ❤️️ by updatecli

---------

Co-authored-by: Jenkins Infra Bot (updatecli) <60776566+jenkins-infra-bot@users.noreply.github.com>
Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
3 people authored Jul 4, 2023
1 parent 166d71a commit 6cbb322
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions iam-nlb-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,25 @@
"arn:aws:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
]
},
{
"Effect": "Allow",
"Action": [
"elasticloadbalancing:ModifyLoadBalancerAttributes",
"elasticloadbalancing:SetIpAddressType",
"elasticloadbalancing:SetSecurityGroups",
"elasticloadbalancing:SetSubnets",
"elasticloadbalancing:DeleteLoadBalancer",
"elasticloadbalancing:ModifyTargetGroup",
"elasticloadbalancing:ModifyTargetGroupAttributes",
"elasticloadbalancing:DeleteTargetGroup"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
Expand All @@ -199,25 +218,6 @@
}
}
},
{
"Effect": "Allow",
"Action": [
"elasticloadbalancing:ModifyLoadBalancerAttributes",
"elasticloadbalancing:SetIpAddressType",
"elasticloadbalancing:SetSecurityGroups",
"elasticloadbalancing:SetSubnets",
"elasticloadbalancing:DeleteLoadBalancer",
"elasticloadbalancing:ModifyTargetGroup",
"elasticloadbalancing:ModifyTargetGroupAttributes",
"elasticloadbalancing:DeleteTargetGroup"
],
"Resource": "*",
"Condition": {
"Null": {
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
Expand Down
2 changes: 1 addition & 1 deletion iam-roles-eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_iam_policy" "ebs_csi" {
resource "aws_iam_policy" "cluster_nlb" {
name = "AWSLoadBalancerControllerIAMPolicy"
description = "EKS cluster-nlb policy"
# JSON from https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.7/docs/install/iam_policy.json
# JSON from https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.1/docs/install/iam_policy.json
# Cf https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html
policy = file("iam-nlb-policy.json") #tfsec:ignore:aws-iam-no-policy-wildcards
}
Expand Down

0 comments on commit 6cbb322

Please sign in to comment.