Last active
July 30, 2018 18:31
-
-
Save andrejmaya/8c79c21d6ffa1624638545a0a2db0404 to your computer and use it in GitHub Desktop.
Simple AWS EKS deployment with Terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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