Skip to content

Commit 4ce604e

Browse files
feat: Update AWS Load Balancer controller policy to match v2.13 of the upstream project (#573)
Signed-off-by: Bryant Biggs <[email protected]> Co-authored-by: Bryant Biggs <[email protected]>
1 parent 416c5cc commit 4ce604e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.99.0
3+
rev: v1.99.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

modules/iam-role-for-service-accounts-eks/policies.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ data "aws_iam_policy_document" "aws_gateway_controller" {
1717
}
1818
}
1919

20-
2120
resource "aws_iam_policy" "aws_gateway_controller" {
2221
count = var.create_role && var.attach_aws_gateway_controller_policy ? 1 : 0
2322

@@ -859,6 +858,7 @@ data "aws_iam_policy_document" "load_balancer_controller" {
859858
"ec2:DescribeCoipPools",
860859
"ec2:GetSecurityGroupsForVpc",
861860
"ec2:DescribeIpamPools",
861+
"ec2:DescribeRouteTables",
862862
"elasticloadbalancing:DescribeLoadBalancers",
863863
"elasticloadbalancing:DescribeLoadBalancerAttributes",
864864
"elasticloadbalancing:DescribeListeners",
@@ -903,6 +903,12 @@ data "aws_iam_policy_document" "load_balancer_controller" {
903903
actions = [
904904
"ec2:AuthorizeSecurityGroupIngress",
905905
"ec2:RevokeSecurityGroupIngress",
906+
]
907+
resources = ["*"]
908+
}
909+
910+
statement {
911+
actions = [
906912
"ec2:CreateSecurityGroup",
907913
]
908914
resources = ["*"]
@@ -962,7 +968,6 @@ data "aws_iam_policy_document" "load_balancer_controller" {
962968

963969
statement {
964970
actions = [
965-
"elasticloadbalancing:AddTags",
966971
"elasticloadbalancing:CreateLoadBalancer",
967972
"elasticloadbalancing:CreateTargetGroup",
968973
]
@@ -977,7 +982,6 @@ data "aws_iam_policy_document" "load_balancer_controller" {
977982

978983
statement {
979984
actions = [
980-
"elasticloadbalancing:AddTags",
981985
"elasticloadbalancing:CreateListener",
982986
"elasticloadbalancing:DeleteListener",
983987
"elasticloadbalancing:CreateRule",

0 commit comments

Comments
 (0)