Y
Hacker News
new
|
ask
|
show
|
jobs
by
isuckatcoding
3038 days ago
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).
2 comments
RileyJames
3038 days ago
url could be set via an environmental variable:
https://docs.aws.amazon.com/lambda/latest/dg/go-programming-...
link
frankcash
3038 days ago
I could definitely look into this, thanks for the suggestion!
link
davewongillies
3038 days ago
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.
link