Re:Show HN: Deploy a Go Lambda to Ping a Site in 20 Seconds
by isuckatcoding on Monday February 26, 2018 @10:35PM
(#16470891)
Pretty neat. Instead of hard coding the url, you could provide it as parameter to the main. Pretty sure itβs possible (at least using the node and c# Lambda it was).
[ Parent
| on HN ]
Re:Show HN: Deploy a Go Lambda to Ping a Site in 20 Seconds
by RileyJames on Monday February 26, 2018 @10:49PM
(#16470940)
url could be set via an environmental variable: https://docs.aws.amazon.com/lambda/latest/dg/go-programming-...
Re:Show HN: Deploy a Go Lambda to Ping a Site in 20 Seconds
by frankcash on Monday February 26, 2018 @10:38PM
(#16470902)
I could definitely look into this, thanks for the suggestion!
Re:Show HN: Deploy a Go Lambda to Ping a Site in 20 Seconds
by davewongillies on Monday February 26, 2018 @11:31PM
(#16471091)
I raised a PR to just that: https://github.com/frankcash/go-lambda-ping/pull/1
The URL is set in terraform.tfvars, which then gets passed to the lambda resource.