Skip to content

Commit

Permalink
feat: Add support for spot request permissions with Karpenter IRSA ro…
Browse files Browse the repository at this point in the history
…le (#277)
  • Loading branch information
bryantbiggs authored Sep 15, 2022
1 parent d616498 commit b3b99d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.74.1
rev: v1.75.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
1 change: 1 addition & 0 deletions modules/iam-role-for-service-accounts-eks/policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ data "aws_iam_policy_document" "karpenter_controller" {
resources = [
"arn:${local.partition}:ec2:*::image/*",
"arn:${local.partition}:ec2:*:${local.account_id}:instance/*",
"arn:${local.partition}:ec2:*:${local.account_id}:spot-instances-request/*",
"arn:${local.partition}:ec2:*:${local.account_id}:volume/*",
"arn:${local.partition}:ec2:*:${local.account_id}:network-interface/*",
"arn:${local.partition}:ec2:*:${coalesce(var.karpenter_subnet_account_id, local.account_id)}:subnet/*",
Expand Down

0 comments on commit b3b99d9

Please sign in to comment.