commententing out etcd for for now while I work on cp

pull/516/head
Jonathan Simon 2019-11-24 20:50:24 -08:00
parent 23c3df43ad
commit ceb4ac5678
2 changed files with 48 additions and 44 deletions

View File

@ -1,3 +1,7 @@
locals {
service = "${var.prefix}-${var.name}-cp"
}
data "aws_vpc" "main" { data "aws_vpc" "main" {
filter { filter {
name = "tag:Name" name = "tag:Name"

View File

@ -1,52 +1,52 @@
locals { # locals {
service = "${var.prefix}-${var.name}-etcd" # service = "${var.prefix}-${var.name}-etcd"
} # }
module "asg" { # module "asg" {
count = "${var.etcd_member_count}" # count = "${var.etcd_member_count}"
source = "terraform-aws-modules/autoscaling/aws" # source = "terraform-aws-modules/autoscaling/aws"
version = "~> 3.0" # version = "~> 3.0"
name = "${local.service}-asg" # name = "${local.service}-asg"
# Launch configuration # # Launch configuration
lc_name = "${local.service}-lc" # lc_name = "${local.service}-lc"
image_id = "ami-ebd02392" ## need to set a up data source for this. # image_id = "ami-ebd02392" ## need to set a up data source for this.
instance_type = "t3.micro" # instance_type = "t3.micro"
security_groups = ["sg-12345678"] ## need to create this # security_groups = ["sg-12345678"] ## need to create this
root_block_device = [ # root_block_device = [
{ # {
volume_size = "20" # volume_size = "20"
volume_type = "gp2" # volume_type = "gp2"
}, # },
] # ]
# Auto scaling group # # Auto scaling group
asg_name = "${local.service}-asg" # asg_name = "${local.service}-asg"
vpc_zone_identifier = ["subnet-1235678", "subnet-87654321"] # vpc_zone_identifier = ["subnet-1235678", "subnet-87654321"]
health_check_type = "EC2" # health_check_type = "EC2"
min_size = 1 # min_size = 1
max_size = 1 # max_size = 1
desired_capacity = 1 # desired_capacity = 1
wait_for_capacity_timeout = 0 # wait_for_capacity_timeout = 0
tags = [ # tags = [
{ # {
key = "Environment" # key = "Environment"
value = "dev" # value = "dev"
propagate_at_launch = true # propagate_at_launch = true
}, # },
{ # {
key = "Project" # key = "Project"
value = "megasecret" # value = "megasecret"
propagate_at_launch = true # propagate_at_launch = true
}, # },
] # ]
tags_as_map = { # tags_as_map = {
extra_tag1 = "extra_value1" # extra_tag1 = "extra_value1"
extra_tag2 = "extra_value2" # extra_tag2 = "extra_value2"
} # }
} # }