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" {
875
875
}
876
876
}
877
877
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
+
878
904
statement {
879
905
actions = [
880
906
" elasticloadbalancing:RegisterTargets" ,
You can’t perform that action at this time.
0 commit comments