Skip to content

Commit

Permalink
fix: update IAM policy to match the latest version for Karpenter v0.33.0
Browse files Browse the repository at this point in the history
adds permissions for AllowScopedEC2InstanceActionsWithTags and AllowScopedEC2InstanceActions for spot
  • Loading branch information
andskli committed Dec 19, 2023
1 parent 9691d66 commit 2a45cf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ export class Karpenter extends Construct {
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:volume/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:network-interface/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:launch-template/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:spot-instances-request/*`,
],
actions: [
'ec2:RunInstances',
Expand Down Expand Up @@ -534,6 +535,7 @@ export class Karpenter extends Construct {
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:volume/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:network-interface/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:launch-template/*`,
`arn:${Aws.PARTITION}:ec2:${Aws.REGION}:*:spot-instances-request/*`,
],
actions: ['ec2:CreateTags'],
conditions: {
Expand Down

0 comments on commit 2a45cf5

Please sign in to comment.