Browse the Repo

file-type-icondata-stores
file-type-iconlambda
file-type-iconmgmt
file-type-iconnetworking
file-type-iconsecurity
file-type-iconservice-templates
file-type-iconservices
file-type-iconasg-service
file-type-iconbeanstalk-service
file-type-iconecs-cluster
file-type-iconecs-service-with-alb
file-type-iconeks-cluster
file-type-iconmigration_guides
file-type-iconpacker
file-type-iconuser-data
file-type-iconREADME.md
file-type-icondependencies.tf
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconeks-core-services
file-type-iconk8s-namespace
file-type-iconk8s-service
file-type-iconstatic-website
file-type-icontls-scripts
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconREADME.md

Browse the Repo

file-type-icondata-stores
file-type-iconlambda
file-type-iconmgmt
file-type-iconnetworking
file-type-iconsecurity
file-type-iconservice-templates
file-type-iconservices
file-type-iconasg-service
file-type-iconbeanstalk-service
file-type-iconecs-cluster
file-type-iconecs-service-with-alb
file-type-iconeks-cluster
file-type-iconmigration_guides
file-type-iconpacker
file-type-iconuser-data
file-type-iconREADME.md
file-type-icondependencies.tf
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconeks-core-services
file-type-iconk8s-namespace
file-type-iconk8s-service
file-type-iconstatic-website
file-type-icontls-scripts
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconREADME.md
Sample Infrastructure Modules

Sample Infrastructure Modules

Sample infrastructure-modules repo (multi-account setup) for fictional company Acme.

Code Preview

Preview the Code

mobile file icon

variables.tf

down
  • # ---------------------------------------------------------------------------------------------------------------------
  • # MODULE PARAMETERS
  • # These variables are expected to be passed in by the operator
  • # ---------------------------------------------------------------------------------------------------------------------
  • variable "aws_region" {
  • description = "The AWS region in which all resources will be created"
  • type = string
  • }
  • variable "aws_account_id" {
  • description = "The ID of the AWS Account in which to create resources."
  • type = string
  • }
  • variable "cluster_name" {
  • description = "The name of the EKS cluster"
  • type = string
  • }
  • variable "autoscaling_group_configurations" {
  • description = "Configure one or more Auto Scaling Groups (ASGs) to manage the EC2 instances in this cluster. If any of the values are not provided, the specified default variable will be used to lookup a default value."
  • # Ideally, we will use a more strict type here but since we want to support required and optional values, and since
  • # Terraform's type system only supports maps that have the same type for all values, we have to use the less useful
  • # `any` type.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?