From 681038523769c1283236d58608e42dd53d551006 Mon Sep 17 00:00:00 2001 From: Max Williams Date: Wed, 19 Dec 2018 10:43:21 +0100 Subject: [PATCH] Making README example more complete --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fb45271..8100e93 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,22 @@ Read the [AWS docs on EKS to get connected to the k8s dashboard](https://docs.aw A full example leveraging other community modules is contained in the [examples/eks_test_fixture directory](https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/eks_test_fixture). Here's the gist of using it via the Terraform registry: ```hcl -module "eks" { - source = "terraform-aws-modules/eks/aws" - cluster_name = "test-eks-cluster" - subnets = ["subnet-abcde012", "subnet-bcde012a"] - tags = {Environment = "test"} - vpc_id = "vpc-abcde012" +module "my-cluster" { + source = "terraform-aws-modules/eks/aws" + cluster_name = "my-cluster" + subnets = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"] + vpc_id = "vpc-1234556abcdef" + + worker_groups = [ + { + instance_type = "m4.large" + asg_max_size = 5 + } + ] + + tags = { + environment = "test" + } } ```