File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
modules/iam-role-for-service-accounts-eks Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,6 @@ data "aws_iam_policy_document" "karpenter_controller" {
547
547
actions = [" ec2:RunInstances" ]
548
548
resources = [
549
549
" arn:${ local . partition } :ec2:*:${ local . account_id } :launch-template/*" ,
550
- " arn:${ local . partition } :ec2:*:${ local . account_id } :security-group/*" ,
551
550
]
552
551
553
552
condition {
@@ -563,6 +562,7 @@ data "aws_iam_policy_document" "karpenter_controller" {
563
562
" arn:${ local . partition } :ec2:*::image/*" ,
564
563
" arn:${ local . partition } :ec2:*:${ local . account_id } :instance/*" ,
565
564
" arn:${ local . partition } :ec2:*:${ local . account_id } :spot-instances-request/*" ,
565
+ " arn:${ local . partition } :ec2:*:${ local . account_id } :security-group/*" ,
566
566
" arn:${ local . partition } :ec2:*:${ local . account_id } :volume/*" ,
567
567
" arn:${ local . partition } :ec2:*:${ local . account_id } :network-interface/*" ,
568
568
" arn:${ local . partition } :ec2:*:${ coalesce (var. karpenter_subnet_account_id , local. account_id )} :subnet/*" ,
You can’t perform that action at this time.
0 commit comments