Skip to content

Commit 55ce6f3

Browse files
authored
feat(iam): update iam policy to be compatible version 2.11.0 of lb-controller (#25)
1 parent 61c43d2 commit 55ce6f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

iam.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55
data "aws_iam_policy_document" "this" {
66
count = (local.irsa_role_create && var.irsa_policy_enabled) || (local.eks_pod_identity_role_create && var.eks_pod_identity_policy_enabled) ? 1 : 0
77

8-
# https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/v2.10.1/docs/install/iam_policy.json
8+
# https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/v2.11.0/docs/install/iam_policy.json
99
#checkov:skip=CKV_AWS_109:The official documentation was used to define these policies
1010
#checkov:skip=CKV_AWS_111:The official documentation was used to define these policies
1111
#checkov:skip=CKV_AWS_356
@@ -50,7 +50,8 @@ data "aws_iam_policy_document" "this" {
5050
"elasticloadbalancing:DescribeTargetGroupAttributes",
5151
"elasticloadbalancing:DescribeTargetHealth",
5252
"elasticloadbalancing:DescribeTags",
53-
"elasticloadbalancing:DescribeTrustStores"
53+
"elasticloadbalancing:DescribeTrustStores",
54+
"elasticloadbalancing:DescribeCapacityReservation"
5455
]
5556
resources = ["*"]
5657
}
@@ -247,7 +248,8 @@ data "aws_iam_policy_document" "this" {
247248
"elasticloadbalancing:DeleteLoadBalancer",
248249
"elasticloadbalancing:ModifyTargetGroup",
249250
"elasticloadbalancing:ModifyTargetGroupAttributes",
250-
"elasticloadbalancing:DeleteTargetGroup"
251+
"elasticloadbalancing:DeleteTargetGroup",
252+
"elasticloadbalancing:ModifyCapacityReservation"
251253
]
252254
resources = ["*"]
253255
condition {

0 commit comments

Comments
 (0)