parent
73354f40cc
commit
3126b6b802
|
@ -19,6 +19,7 @@ module "stack" {
|
|||
vpc_cidr = "${var.vpc_cidr}"
|
||||
public_subnet_cidr = "${var.public_subnet_cidr}"
|
||||
instance_type = "${var.instance_type}"
|
||||
root_block_size = "${var.root_block_size}"
|
||||
db_subnet_cidr = "${var.db_subnet_cidr}"
|
||||
dns_zone_name = "${var.dns_zone_name}"
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@ variable "instance_type" {
|
|||
default = "m5.xlarge"
|
||||
}
|
||||
|
||||
variable "root_block_size" {
|
||||
description = "The EC2 instance root block size in GB"
|
||||
default = 8
|
||||
}
|
||||
|
||||
variable "chains" {
|
||||
description = "A map of chain names to urls"
|
||||
|
||||
|
|
|
@ -30,6 +30,10 @@ resource "aws_launch_configuration" "explorer" {
|
|||
|
||||
user_data = "${file("${path.module}/libexec/init.sh")}"
|
||||
|
||||
root_block_device {
|
||||
volume_size = "${var.root_block_size}"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ variable "public_subnet_cidr" {}
|
|||
variable "db_subnet_cidr" {}
|
||||
variable "dns_zone_name" {}
|
||||
variable "instance_type" {}
|
||||
variable "root_block_size" {}
|
||||
|
||||
variable "chains" {
|
||||
default = {}
|
||||
|
|
Loading…
Reference in New Issue