From d619cb6d203e6a24eac23aff7f3c6e0d07645cac Mon Sep 17 00:00:00 2001 From: Kathy Jonick Date: Wed, 6 Feb 2019 19:08:00 -0800 Subject: [PATCH] Add root_vol_size for openvpn server --- docker-openvpn-server/cluster/main.tf | 3 ++- docker-openvpn-server/cluster/variables.tf | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-openvpn-server/cluster/main.tf b/docker-openvpn-server/cluster/main.tf index 78c5b4b..2ba2e1d 100644 --- a/docker-openvpn-server/cluster/main.tf +++ b/docker-openvpn-server/cluster/main.tf @@ -38,14 +38,15 @@ module "cluster" { # LC parameters ami = "${coalesce(var.ami_custom, data.aws_ami.cluster_ami.id)}" + associate_public_ip_address = "${var.associate_public_ip_address}" ebs_optimized = "false" enable_monitoring = "true" instance_based_naming_enabled = "${var.instance_based_naming_enabled}" instance_profile = "${aws_iam_instance_profile.profile.id}" instance_type = "${var.instance_type}" key_name = "${var.key_name}" + root_vol_size = "${var.root_vol_size}" user_data = "${coalesce(var.ami_custom_user_data, data.template_file.user_data.rendered)}" - associate_public_ip_address = "${var.associate_public_ip_address}" # ASG parameters enabled_metrics = "${var.enabled_metrics}" diff --git a/docker-openvpn-server/cluster/variables.tf b/docker-openvpn-server/cluster/variables.tf index 6c0fe5d..1ad368e 100644 --- a/docker-openvpn-server/cluster/variables.tf +++ b/docker-openvpn-server/cluster/variables.tf @@ -28,6 +28,11 @@ variable "key_name" { description = "SSH key pair to associate with the launch configuration." } +variable "root_vol_size" { + type = "string" + description = "Size of the AMI root volume in GB" +} + variable "vpc_id" { type = "string" description = "ID of the target VPC."