From ceb4ac5678da39202b25499ea04423d506d6b8da Mon Sep 17 00:00:00 2001 From: Jonathan Simon Date: Sun, 24 Nov 2019 20:50:24 -0800 Subject: [PATCH] commententing out etcd for for now while I work on cp --- terraform/aws/control-plane.tf | 4 ++ terraform/aws/etcd.tf | 88 +++++++++++++++++----------------- 2 files changed, 48 insertions(+), 44 deletions(-) diff --git a/terraform/aws/control-plane.tf b/terraform/aws/control-plane.tf index 65b5f0b..963910a 100644 --- a/terraform/aws/control-plane.tf +++ b/terraform/aws/control-plane.tf @@ -1,3 +1,7 @@ +locals { + service = "${var.prefix}-${var.name}-cp" +} + data "aws_vpc" "main" { filter { name = "tag:Name" diff --git a/terraform/aws/etcd.tf b/terraform/aws/etcd.tf index 32de456..99962ea 100644 --- a/terraform/aws/etcd.tf +++ b/terraform/aws/etcd.tf @@ -1,52 +1,52 @@ -locals { - service = "${var.prefix}-${var.name}-etcd" -} +# locals { +# service = "${var.prefix}-${var.name}-etcd" +# } -module "asg" { - count = "${var.etcd_member_count}" - source = "terraform-aws-modules/autoscaling/aws" - version = "~> 3.0" +# module "asg" { +# count = "${var.etcd_member_count}" +# source = "terraform-aws-modules/autoscaling/aws" +# version = "~> 3.0" - name = "${local.service}-asg" +# name = "${local.service}-asg" - # Launch configuration - lc_name = "${local.service}-lc" +# # Launch configuration +# lc_name = "${local.service}-lc" - image_id = "ami-ebd02392" ## need to set a up data source for this. - instance_type = "t3.micro" - security_groups = ["sg-12345678"] ## need to create this +# image_id = "ami-ebd02392" ## need to set a up data source for this. +# instance_type = "t3.micro" +# security_groups = ["sg-12345678"] ## need to create this - root_block_device = [ - { - volume_size = "20" - volume_type = "gp2" - }, - ] +# root_block_device = [ +# { +# volume_size = "20" +# volume_type = "gp2" +# }, +# ] - # Auto scaling group - asg_name = "${local.service}-asg" - vpc_zone_identifier = ["subnet-1235678", "subnet-87654321"] - health_check_type = "EC2" - min_size = 1 - max_size = 1 - desired_capacity = 1 - wait_for_capacity_timeout = 0 +# # Auto scaling group +# asg_name = "${local.service}-asg" +# vpc_zone_identifier = ["subnet-1235678", "subnet-87654321"] +# health_check_type = "EC2" +# min_size = 1 +# max_size = 1 +# desired_capacity = 1 +# wait_for_capacity_timeout = 0 - tags = [ - { - key = "Environment" - value = "dev" - propagate_at_launch = true - }, - { - key = "Project" - value = "megasecret" - propagate_at_launch = true - }, - ] +# tags = [ +# { +# key = "Environment" +# value = "dev" +# propagate_at_launch = true +# }, +# { +# key = "Project" +# value = "megasecret" +# propagate_at_launch = true +# }, +# ] - tags_as_map = { - extra_tag1 = "extra_value1" - extra_tag2 = "extra_value2" - } -} +# tags_as_map = { +# extra_tag1 = "extra_value1" +# extra_tag2 = "extra_value2" +# } +# }