Skip to content

truefoundry/terraform-aws-truefoundry-karpenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-truefoundry-karpenter

Truefoundry AWS Karpenter Module

Requirements

Name Version
terraform ~> 1.4
aws ~> 5.57

Providers

Name Version
aws ~> 5.57

Modules

Name Source Version
karpenter_irsa_role terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks 5.48.0

Resources

Name Type
aws_cloudwatch_event_rule.this resource
aws_cloudwatch_event_target.this resource
aws_iam_instance_profile.karpenter resource
aws_iam_policy.sqs resource
aws_sqs_queue.karpenter resource
aws_sqs_queue_policy.karpenter resource
aws_iam_policy_document.node_termination_queue data source
aws_iam_policy_document.sqs data source

Inputs

Name Description Type Default Required
additional_controller_node_iam_role_arns The additional node iam roles to be used by karpenter list(string) [] no
additional_controller_role_policies_arn arn of dditional policies to attach to the karpenter controller role (Example {'x-policy' = arn:aws:iam::123456789012:policy/x-policy}) any {} no
cluster_name Cluster Name to install karpenter string n/a yes
controller_node_iam_role_arn The node iam role for the initial node group to be used by karpenter string n/a yes
controller_nodegroup_name The initial nodegroup name string n/a yes
k8s_service_account_name The k8s karpenter service account name string "karpenter" no
k8s_service_account_namespace The k8s karpenter namespace string "kube-system" no
message_retention_seconds Message retention in seconds for SQS queue number 300 no
oidc_provider_arn The oidc provider arn of the eks cluster string n/a yes
sqs_enable_encryption Enable Server side encryption for SQS bool true no
tags AWS Tags common to all the resources created map(string) {} no

Outputs

Name Description
karpenter_instance_profile_id Karpenter instance profile ID
karpenter_role_arn Karpenter role ARN
karpenter_sqs_name Name of the SQS queue for interruption handling