File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ resource "aws_iam_role_policy_attachment" "node" {
297
297
for_each = { for k , v in merge (
298
298
{
299
299
AmazonEKSWorkerNodePolicy = " ${ local . node_iam_role_policy_prefix } /AmazonEKSWorkerNodePolicy"
300
- AmazonEC2ContainerRegistryReadOnly = " ${ local . node_iam_role_policy_prefix } /AmazonEC2ContainerRegistryReadOnly "
300
+ AmazonEC2ContainerRegistryPullOnly = " ${ local . node_iam_role_policy_prefix } /AmazonEC2ContainerRegistryPullOnly "
301
301
},
302
302
local. ipv4_cni_policy ,
303
303
local. ipv6_cni_policy
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ data "aws_iam_policy_document" "controller" {
50
50
" arn:${ local . partition } :ec2:${ local . region } :*:network-interface/*" ,
51
51
" arn:${ local . partition } :ec2:${ local . region } :*:launch-template/*" ,
52
52
" arn:${ local . partition } :ec2:${ local . region } :*:spot-instances-request/*" ,
53
+ " arn:${ local . partition } :ec2:${ local . region } :*:capacity-reservation/*"
53
54
]
54
55
actions = [
55
56
" ec2:RunInstances" ,
@@ -348,6 +349,12 @@ data "aws_iam_policy_document" "controller" {
348
349
actions = [" iam:GetInstanceProfile" ]
349
350
}
350
351
352
+ statement {
353
+ sid = " AllowUnscopedInstanceProfileListAction"
354
+ resources = [" *" ]
355
+ actions = [" iam:ListInstanceProfiles" ]
356
+ }
357
+
351
358
statement {
352
359
sid = " AllowAPIServerEndpointDiscovery"
353
360
resources = [" arn:${ local . partition } :eks:${ local . region } :${ local . account_id } :cluster/${ var . cluster_name } " ]
You can’t perform that action at this time.
0 commit comments