Skip to content

Instantly share code, notes, and snippets.

@sstarcher
Created August 13, 2015 19:07
Show Gist options
  • Save sstarcher/248b7c80b5b2928fe796 to your computer and use it in GitHub Desktop.
Save sstarcher/248b7c80b5b2928fe796 to your computer and use it in GitHub Desktop.
terraform patch ASG
diff --git a/contrib/terraform/tflib/aws/nodes-asg.tf b/contrib/terraform/tflib/aws/nodes-asg.tf
index d18ab46..84f1c2b 100644
--- a/contrib/terraform/tflib/aws/nodes-asg.tf
+++ b/contrib/terraform/tflib/aws/nodes-asg.tf
@@ -5,6 +5,10 @@ resource "aws_launch_configuration" "deis_launch_config" {
instance_type = "${var.instance_type}"
security_groups = [ "${aws_security_group.deis_ssh.id}", "${aws_security_group.deis_control.id}", "${aws_security_group.deis_web.id}", "${aws_security_group.intra_vpc.id}" ]
key_name = "${var.key_name}"
+ ebs_block_device = {
+ device_name = "/dev/xvdf"
+ volume_size = "${var.docker_volume_size}"
+ }
}
resource "aws_autoscaling_group" "deis_nodes" {
@@ -19,10 +23,6 @@ resource "aws_autoscaling_group" "deis_nodes" {
force_delete = true
launch_configuration = "${aws_launch_configuration.deis_launch_config.name}"
load_balancers = ["${aws_elb.deis_web_elb.name}"]
- ebs_block_device = {
- device_name = "/dev/xvdf"
- volume_size = "${var.docker_volume_size}"
- }
tag {
key = "Name"
value = "deis-cluster-node"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment