Skip to content

Commit

Permalink
feat: Update Karpenter sub-module to support Karpenter v1.11 (#3674)
Browse files Browse the repository at this point in the history
Update karpenter module to support Karpenter v1.11

Signed-off-by: Erez Zarum <erezz@amazon.com>
  • Loading branch information
Erez Zarum authored and GitHub committed Apr 13, 2026
1 parent 6bac707 commit 312ddb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions modules/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ locals {
detail-type = ["EC2 Instance State-change Notification"]
}
}
capacity_reservation_interruption = {
name = "CRInterruption"
description = "Karpenter interrupt - EC2 capacity reservation instance interruption warning"
event_pattern = {
source = ["aws.ec2"]
detail-type = ["EC2 Capacity Reservation Instance Interruption Warning"]
}
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion modules/karpenter/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data "aws_iam_policy_document" "controller" {
"arn:${local.partition}:ec2:${local.region}:*:security-group/*",
"arn:${local.partition}:ec2:${local.region}:*:subnet/*",
"arn:${local.partition}:ec2:${local.region}:*:capacity-reservation/*",
"arn:${local.partition}:ec2:${local.region}:*:placement-group/*"
]

actions = [
Expand Down Expand Up @@ -190,7 +191,8 @@ data "aws_iam_policy_document" "controller" {
"ec2:DescribeLaunchTemplates",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSpotPriceHistory",
"ec2:DescribeSubnets"
"ec2:DescribeSubnets",
"ec2:DescribePlacementGroups"
]

condition {
Expand Down

0 comments on commit 312ddb6

Please sign in to comment.