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

url could be set via an environmental variable: https://docs.aws.amazon.com/lambda/latest/dg/go-programming-...
I could definitely look into this, thanks for the suggestion!
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.