4 ms·
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
by isuckatcoding 9y 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).
- frankcash 9y agoI could definitely look into this, thanks for the suggestion!
- davewongillies 9y agoI raised a PR to just that: https://github.com/frankcash/go-lambda-ping/pull/1 https://github.com/frankcash/go-lambda-ping/pull/1 The URL is set in terraform.tfvars, which then gets passed to the lambda resource.
- RileyJames 9y agourl could be set via an environmental variable: https://docs.aws.amazon.com/lambda/latest/dg/go-programming-model-env-variables.html https://docs.aws.amazon.com/lambda/latest/dg/go-programming-...