Skip to content

Instantly share code, notes, and snippets.

@sprutner
Last active August 14, 2017 05:59
Show Gist options
  • Save sprutner/16b0ccbd79b480ac895acaf32c134551 to your computer and use it in GitHub Desktop.
Save sprutner/16b0ccbd79b480ac895acaf32c134551 to your computer and use it in GitHub Desktop.
mediumcodesample.md
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
  rate_limit         = 1000
}

output "invoke_url" {
  value = "${module.lambda_proxy.invoke_url}"
}

output "api_key" {
  value = "${module.lambda_proxy.api_key_value}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment