Skip to content

Commit 2e7b1f9

Browse files
authored
Merge pull request #22 from kjonick1/master
Add root_vol_size for openvpn server
2 parents 8490b2b + d619cb6 commit 2e7b1f9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker-openvpn-server/cluster/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ module "cluster" {
3838

3939
# LC parameters
4040
ami = "${coalesce(var.ami_custom, data.aws_ami.cluster_ami.id)}"
41+
associate_public_ip_address = "${var.associate_public_ip_address}"
4142
ebs_optimized = "false"
4243
enable_monitoring = "true"
4344
instance_based_naming_enabled = "${var.instance_based_naming_enabled}"
4445
instance_profile = "${aws_iam_instance_profile.profile.id}"
4546
instance_type = "${var.instance_type}"
4647
key_name = "${var.key_name}"
48+
root_vol_size = "${var.root_vol_size}"
4749
user_data = "${coalesce(var.ami_custom_user_data, data.template_file.user_data.rendered)}"
48-
associate_public_ip_address = "${var.associate_public_ip_address}"
4950

5051
# ASG parameters
5152
enabled_metrics = "${var.enabled_metrics}"

docker-openvpn-server/cluster/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ variable "key_name" {
2828
description = "SSH key pair to associate with the launch configuration."
2929
}
3030

31+
variable "root_vol_size" {
32+
type = "string"
33+
description = "Size of the AMI root volume in GB"
34+
}
35+
3136
variable "vpc_id" {
3237
type = "string"
3338
description = "ID of the target VPC."

0 commit comments

Comments
 (0)