File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,15 @@ data "aws_iam_policy_document" "karpenter_controller" {
409
409
]
410
410
}
411
411
412
+ condition {
413
+ test = " StringEquals"
414
+ variable = " aws:RequestTag/eks:eks-cluster-name"
415
+
416
+ values = [
417
+ local . eks_cluster_name
418
+ ]
419
+ }
420
+
412
421
condition {
413
422
test = " StringEquals"
414
423
variable = " ec2:CreateAction"
@@ -458,11 +467,21 @@ data "aws_iam_policy_document" "karpenter_controller" {
458
467
]
459
468
}
460
469
470
+ condition {
471
+ test = " StringEqualsIfExists"
472
+ variable = " aws:RequestTag/eks:eks-cluster-name"
473
+
474
+ values = [
475
+ local . eks_cluster_name
476
+ ]
477
+ }
478
+
461
479
condition {
462
480
test = " ForAllValues:StringEquals"
463
481
variable = " aws:TagKeys"
464
482
465
483
values = [
484
+ " eks:eks-cluster-name" ,
466
485
" karpenter.sh/nodeclaim" ,
467
486
" Name"
468
487
]
You can’t perform that action at this time.
0 commit comments