Created
May 11, 2020 03:36
-
-
Save rodrickbrown/a997baa4576bc20c20b6a38321020dd4 to your computer and use it in GitHub Desktop.
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
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