Skip to content

Commit 8632213

Browse files
kishorjjdn5126Apollorion
authored
update IAM policy template (kubernetes-sigs#3046)
* update IAM policy template * Update docs/install/iam_policy_us-gov.json Co-authored-by: Joey Stout <[email protected]> * Update docs/install/iam_policy_cn.json Co-authored-by: Joey Stout <[email protected]> * fix upstream prow tests for 2.4 branch set ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20, since 2.4 branch uses go 1.19 --------- Co-authored-by: Jeff Nelson <[email protected]> Co-authored-by: Joey Stout <[email protected]>
1 parent a0beef1 commit 8632213

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

docs/install/iam_policy.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,28 @@
177177
"arn:aws:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
178178
]
179179
},
180+
{
181+
"Effect": "Allow",
182+
"Action": [
183+
"elasticloadbalancing:AddTags"
184+
],
185+
"Resource": [
186+
"arn:aws:elasticloadbalancing:*:*:targetgroup/*/*",
187+
"arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/*",
188+
"arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
189+
],
190+
"Condition": {
191+
"StringEquals": {
192+
"elasticloadbalancing:CreateAction": [
193+
"CreateTargetGroup",
194+
"CreateLoadBalancer"
195+
]
196+
},
197+
"Null": {
198+
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
199+
}
200+
}
201+
},
180202
{
181203
"Effect": "Allow",
182204
"Action": [

docs/install/iam_policy_cn.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,28 @@
177177
"arn:aws-cn:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
178178
]
179179
},
180+
{
181+
"Effect": "Allow",
182+
"Action": [
183+
"elasticloadbalancing:AddTags"
184+
],
185+
"Resource": [
186+
"arn:aws-cn:elasticloadbalancing:*:*:targetgroup/*/*",
187+
"arn:aws-cn:elasticloadbalancing:*:*:loadbalancer/net/*/*",
188+
"arn:aws-cn:elasticloadbalancing:*:*:loadbalancer/app/*/*"
189+
],
190+
"Condition": {
191+
"StringEquals": {
192+
"elasticloadbalancing:CreateAction": [
193+
"CreateTargetGroup",
194+
"CreateLoadBalancer"
195+
]
196+
},
197+
"Null": {
198+
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
199+
}
200+
}
201+
},
180202
{
181203
"Effect": "Allow",
182204
"Action": [

docs/install/iam_policy_us-gov.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,28 @@
177177
"arn:aws-us-gov:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
178178
]
179179
},
180+
{
181+
"Effect": "Allow",
182+
"Action": [
183+
"elasticloadbalancing:AddTags"
184+
],
185+
"Resource": [
186+
"arn:aws-us-gov:elasticloadbalancing:*:*:targetgroup/*/*",
187+
"arn:aws-us-gov:elasticloadbalancing:*:*:loadbalancer/net/*/*",
188+
"arn:aws-us-gov:elasticloadbalancing:*:*:loadbalancer/app/*/*"
189+
],
190+
"Condition": {
191+
"StringEquals": {
192+
"elasticloadbalancing:CreateAction": [
193+
"CreateTargetGroup",
194+
"CreateLoadBalancer"
195+
]
196+
},
197+
"Null": {
198+
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
199+
}
200+
}
201+
},
180202
{
181203
"Effect": "Allow",
182204
"Action": [

0 commit comments

Comments
 (0)