Skip to content

Commit

Permalink
PRODENG-1981 fix aws example passing type/vol-size to mods
Browse files Browse the repository at this point in the history
- master/worker/msr modules were not receiving global vars

Signed-off-by: James Nesbitt <[email protected]>
  • Loading branch information
james-nesbitt committed Dec 2, 2022
1 parent c8b68d7 commit 9731aa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/terraform/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ ssh_keys/
.terraform/
*terraform.tfstate*
*.tfvars
*.tfvars.json
.terraform.lock.hcl
12 changes: 9 additions & 3 deletions examples/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module "masters" {
cluster_name = var.cluster_name
subnet_ids = module.vpc.public_subnet_ids
security_group_id = module.common.security_group_id
master_type = var.master_type
master_volume_size = var.master_volume_size
image_id = module.common.image_id
kube_cluster_tag = module.common.kube_cluster_tag
ssh_key = var.cluster_name
Expand All @@ -37,6 +39,8 @@ module "msrs" {
subnet_ids = module.vpc.public_subnet_ids
security_group_id = module.common.security_group_id
image_id = module.common.image_id
msr_type = var.msr_type
msr_volume_size = var.msr_volume_size
kube_cluster_tag = module.common.kube_cluster_tag
ssh_key = var.cluster_name
instance_profile_name = module.common.instance_profile_name
Expand All @@ -50,10 +54,11 @@ module "workers" {
subnet_ids = module.vpc.public_subnet_ids
security_group_id = module.common.security_group_id
image_id = module.common.image_id
worker_type = var.worker_type
worker_volume_size = var.worker_volume_size
kube_cluster_tag = module.common.kube_cluster_tag
ssh_key = var.cluster_name
instance_profile_name = module.common.instance_profile_name
worker_type = var.worker_type
}

module "windows_workers" {
Expand All @@ -64,9 +69,10 @@ module "windows_workers" {
subnet_ids = module.vpc.public_subnet_ids
security_group_id = module.common.security_group_id
image_id = module.common.windows_2019_image_id
worker_type = var.worker_type
worker_volume_size = var.worker_volume_size
kube_cluster_tag = module.common.kube_cluster_tag
instance_profile_name = module.common.instance_profile_name
worker_type = var.worker_type
windows_administrator_password = var.windows_administrator_password
}

Expand Down Expand Up @@ -163,4 +169,4 @@ locals {

output "mke_cluster" {
value = yamlencode(local.launchpad_tmpl)
}
}

0 comments on commit 9731aa3

Please sign in to comment.