Skip to content

Instantly share code, notes, and snippets.

@rodrickbrown
Created May 11, 2020 03:36
Show Gist options
  • Save rodrickbrown/a997baa4576bc20c20b6a38321020dd4 to your computer and use it in GitHub Desktop.
Save rodrickbrown/a997baa4576bc20c20b6a38321020dd4 to your computer and use it in GitHub Desktop.
locals {
m_vpc_id = "vpc-7a9ab71c"
region = "us-west-2"
stack = "npe"
env = "dev"
azs = "3"
mgmt_eks_role = "EKSWorker-mgmt-ri"
mgmt_cidr = "10.99.0.0/16"
plan = "large"
env_tags = map(
"stack", "${local.stack}",
"env", "${local.env}",
"terraform", "true",
"Service", "eks",
"EnvironmentType", "INTERNAL-DEV",
"EnvironmentName", "${local.stack}"
)
}
provider "aws" {
region = local.region
version = "~> 2.53.0"
}
provider "kubernetes" {
version = "~> 1.11.1"
}
provider "external" {
version = "~> 1.2"
}
provider "local" {
version = "~> 1.4"
}
provider "null" {
version = "~> 2.1"
}
provider "template" {
version = "~> 2.1"
}
module "eks" {
source = "../modules/aws_eks"
stack = "local.stack"
env = "local.env"
env_tags = "local.env_tags"
mvpc_id = "local.m_vpc_id"
mgmt_eks_role = "local.mgmt_eks_role"
eks_version = "1.16"
max_asg_size = "${map(
"common", "12",
"dataeng", "12",
"rdk", "12",
)}"
}
module "helm" {
source = "../modules/aws_helm"
stack = "local.stack"
env = "local.env"
env_tags = "local.env_tags"
}
module "cloudwatch_loggroup" {
source = "../modules/aws_cloudwatch_loggroup"
name = "${local.env}-${local.stack}"
env_tags = "${local.env_tags}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment