I am hoping to restrict an aws lambda to a specific domain (maybe whitelist local dev too) with a specific domain so that others can't use the lambda if they reach it from a domain that isn't in a whitelist.
Is this possible as a service?
AWS Lambda will not work alone itself you need to integrate with API Gateway or any other services.
As per your requirement, you need to integrate your Lambda with API Gateway.
Now follow the step:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With