Commit 3433b111 authored by Adrian Horrocks's avatar Adrian Horrocks

changing backup ec2 instance type to gp2

parent 1ba0f89b
......@@ -31,6 +31,7 @@ data "template_file" "userdata" {
efs_mount_target = "${var.efs_mount_target}"
s3_bucket_path = "${var.s3_bucket_path == "" ? join("", aws_s3_bucket.efs_backup.*.id) : var.s3_bucket_path}"
backup_archive_name = "${var.backup_archive_name}"
source_directory = "${var.source_directory}"
region = "${data.aws_region.current.name}"
}
}
......@@ -49,6 +50,7 @@ resource "aws_launch_configuration" "backup_efs_node" {
user_data = "${data.template_file.userdata.rendered}"
root_block_device {
volume_type = "${var.root_volume_type}"
volume_size = "${var.root_volume_size}"
}
}
......
......@@ -17,6 +17,11 @@ variable "instance_type" {
default = "t2.micro"
}
variable "instance_block_device" {
description = "The instance type of the backup instance"
default = "gp2"
}
variable "security_groups" {
description = "A list of security group IDs for the backup instance to be a member of"
type = "list"
......@@ -60,6 +65,11 @@ variable "root_volume_size" {
default = 10
}
variable "root_volume_type" {
description = "The type of storage the instance will be created with"
default = "gp2"
}
variable "key_name" {
description = "An optional SSH key pair to launch the backup instance with"
default = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment