instance_type

Type string
Default t3.micro

EC2 instance type. Common types: t3.micro (dev), t3.small (small apps), t3.medium (general purpose), m5.large (production).

Common Instance Types

TypevCPUsMemoryUse Case
t3.micro21 GBDevelopment
t3.small22 GBSmall apps
t3.medium24 GBGeneral purpose
m5.large28 GBProduction

Best Practices

  • Start small and scale up as needed
  • Use t3 instances for burstable workloads
  • Consider reserved instances for steady-state

Full Module Example

module "ec2_instance" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/ec2-instance/aws"
  version = "0.1.0"

  # instance_type
  instance_type = "..."

  # Other required inputs
  instance_name = "..."
  ami_id = "..."
  subnet_id = "..."
}