Skip to content

Instantly share code, notes, and snippets.

View sprutner's full-sized avatar
Ship it

Seth Rutner sprutner

Ship it
  • Autodesk
  • San Francisco
View GitHub Profile
@sprutner
sprutner / gist:8bda32c2ffb92c8d2db916d3355f80d0
Last active September 13, 2017 21:53
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'
module "lambda_proxy" {
  source             = "github.com/sprutner/tf_aws_lambda_proxy"
  region             = "${var.region}"
  name               = "proxy"
  proxy_hostname     = "exampleproxy${var.environment}.dev"
  proxy_port         = "80"
  subnet_ids         = "${module.vpc.app_subnets}"
  security_group_ids = ["${aws_security_group.proxy_access.id}"]
 burst_limit = 10000
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: 2017/07/24 17:53:55.071022 [ERR] client: failed to update allocations: 5 error(s) occurred:
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: * RPC failed to server 10.104.21.92:4647: rpc error: failed to get conn: dial tcp 10.104.21.92:4647: getsockopt: connection refused
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: * RPC failed to server 10.104.20.32:4647: rpc error: rpc error: EOF
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: * RPC failed to server 10.104.20.214:4647: rpc error: EOF
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: * RPC failed to server 10.104.20.31:4647: rpc error: failed to get conn: dial tcp 10.104.20.31:4647: getsockopt: connection refused
Jul 24 17:53:55 ip-10-104-20-33 nomad[1769]: * RPC failed to server 10.104.21.74:4647: rpc error: failed to get conn: dial tcp 10.104.21.74:4647: getsockopt: connection refused
Jul 24 17:53:58 ip-10-104-20-33 nomad[1769]: 2017/07/24 17:53:58.354865 [ERR] client: failed to query for node allocations: 5 error(
@sprutner
sprutner / nomad-log
Created July 24, 2017 17:47
nomad error log
Jul 24 17:44:25 ip-10-104-20-31 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 24 17:44:25 ip-10-104-20-31 systemd[1]: nomad.service: Unit entered failed state.
Jul 24 17:44:25 ip-10-104-20-31 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 24 17:44:35 ip-10-104-20-31 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 24 17:44:35 ip-10-104-20-31 systemd[1]: Stopped nomad server.
Jul 24 17:44:35 ip-10-104-20-31 systemd[1]: Started nomad server.
Jul 24 17:44:35 ip-10-104-20-31 nomad[700]: Loaded configuration from /etc/nomad.d/server.hcl
Jul 24 17:44:35 ip-10-104-20-31 nomad[700]: ==> Starting Nomad agent...
Jul 24 17:44:35 ip-10-104-20-31 nomad[700]: ==> Nomad agent configuration:
Jul 24 17:44:35 ip-10-104-20-31 nomad[700]: Atlas: <disabled>
### Keybase proof
I hereby claim:
* I am sprutner on github.
* I am sprutner (https://keybase.io/sprutner) on keybase.
* I have a public key whose fingerprint is 351E 73B1 625F C7A7 B197 3A72 52FA 716E F95A F4F6
To claim this, I am signing this object: