File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
modules/iam-role-for-service-accounts-eks Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,32 @@ data "aws_iam_policy_document" "load_balancer_controller" {
875875 }
876876 }
877877
878+ statement {
879+ actions = [
880+ " elasticloadbalancing:AddTags"
881+ ]
882+ resources = [
883+ " arn:${ local . partition } :elasticloadbalancing:*:*:targetgroup/*/*" ,
884+ " arn:${ local . partition } :elasticloadbalancing:*:*:loadbalancer/net/*/*" ,
885+ " arn:${ local . partition } :elasticloadbalancing:*:*:loadbalancer/app/*/*" ,
886+ ]
887+
888+ condition {
889+ test = " StringEquals"
890+ variable = " elasticloadbalancing:CreateAction"
891+ values = [
892+ " CreateTargetGroup" ,
893+ " CreateLoadBalancer" ,
894+ ]
895+ }
896+
897+ condition {
898+ test = " Null"
899+ variable = " aws:RequestTag/elbv2.k8s.aws/cluster"
900+ values = [" false" ]
901+ }
902+ }
903+
878904 statement {
879905 actions = [
880906 " elasticloadbalancing:RegisterTargets" ,
You can’t perform that action at this time.
0 commit comments