Skip to content

Commit b3b99d9

Browse files
authored
feat: Add support for spot request permissions with Karpenter IRSA role (#277)
1 parent d616498 commit b3b99d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.74.1
3+
rev: v1.75.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

modules/iam-role-for-service-accounts-eks/policies.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ data "aws_iam_policy_document" "karpenter_controller" {
571571
resources = [
572572
"arn:${local.partition}:ec2:*::image/*",
573573
"arn:${local.partition}:ec2:*:${local.account_id}:instance/*",
574+
"arn:${local.partition}:ec2:*:${local.account_id}:spot-instances-request/*",
574575
"arn:${local.partition}:ec2:*:${local.account_id}:volume/*",
575576
"arn:${local.partition}:ec2:*:${local.account_id}:network-interface/*",
576577
"arn:${local.partition}:ec2:*:${coalesce(var.karpenter_subnet_account_id, local.account_id)}:subnet/*",

0 commit comments

Comments
 (0)