Skip to content

Instantly share code, notes, and snippets.

@sprutner
Last active September 13, 2017 21:53
Show Gist options
  • Save sprutner/8bda32c2ffb92c8d2db916d3355f80d0 to your computer and use it in GitHub Desktop.
Save sprutner/8bda32c2ffb92c8d2db916d3355f80d0 to your computer and use it in GitHub Desktop.
Lifecycle Hook Runner Usage
module "lifecycle_hook" {
  source                      = "github.com/sprutner/tf_aws_lifecycle_hook_runner"
  name                        = "test"
  environment                 = "${var.environment}"
  subnet_ids                  = "${module.vpc.app_subnets}"
  security_group_ids          = "${aws_security_group.docker.id}"
  commands                    = <<EOF
echo 'test',
echo 'hola'
EOF
  consul_url                  = "http://consul.companyxyz${var.environment}.dev"
  autoscaling_group_name      = "${module.nomad_client.asg_name}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment