Skip to content

Instantly share code, notes, and snippets.

@andrejmaya
Last active July 30, 2018 18:31
Show Gist options
  • Save andrejmaya/8c79c21d6ffa1624638545a0a2db0404 to your computer and use it in GitHub Desktop.
Save andrejmaya/8c79c21d6ffa1624638545a0a2db0404 to your computer and use it in GitHub Desktop.
Simple AWS EKS deployment with Terraform
provider "aws" {
access_key = ""
secret_key = ""
region = "us-east-1"
}
locals {
worker_groups = "${list(
map("instance_type","t2.small",
"root_volume_size","8",
"key_name","andrejmaya-us-east-1",
"public_ip",true
),
)}"
}
module "eks" {
source = "terraform-aws-modules/eks/aws"
cluster_name = "test-eks-cluster"
subnets = ["subnet-db19b087", "subnet-6e3d4224"]
tags = "${map("Environment", "test")}"
vpc_id = "vpc-ee5aa794"
worker_groups = "${local.worker_groups}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment