Merge pull request #54 from poanetwork/53-root-block-device

Increase the size of root_block_device
This commit is contained in:
Andrew Cravenho 2018-09-05 10:53:15 -07:00 committed by GitHub
commit 267d8578c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 0 deletions

View File

@ -114,6 +114,7 @@ db_instance_class = "db.m4.xlarge"
db_storage = "120"
alb_ssl_policy = "ELBSecurityPolicy-2016-08"
alb_certificate_arn = "arn:aws:acm:us-east-1:290379793816:certificate/6d1bab74-fb46-4244-aab2-832bf519ab24"
root_block_size = 120
```
- The region should be left at `us-east-1` as some of the other regions fail for different reasons.

View File

@ -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}"

View File

@ -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"

View File

@ -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
}

View File

@ -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 = {}