Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ module "api_server" {
source = "./modules/api-server"

enabled = true
instance_type = "c5.large"
instance_type = "t3.large"

vpc_id = module.baseline.vpc_id
public_subnets = module.baseline.public_subnets
Expand Down
11 changes: 11 additions & 0 deletions modules/api-server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,14 @@ variable "additional_tags" {
default = {}
}

variable "cpu_credits" {
description = "CPU credit option for burstable instances (t2, t3, t4g). Use 'unlimited' for sustained CPU-intensive workloads to prevent throttling."
type = string
default = "standard"

validation {
condition = contains(["standard", "unlimited"], var.cpu_credits)
error_message = "cpu_credits must be either 'standard' or 'unlimited'."
}
}