I am fairly new to AWS Lambda
but sure can see the benefits of it and stumbled upon the superb framework Serverless
to help me built solutions on Lambda.
I started out building solutions using AWS API
Gateway but really need "internal" VPC API
's and not public Internet facing API's like API GW creates.
I found that Servless
indeed can expose a HTTP
endpoint but I can't figure out how this is done and how the URL is created. When I deploy the Lambda from Serverless it gives me the URL, e.g.:
https://uxezd6ry8z.execute-api.eu-west-1.amazonaws.com/dev/ping
I would like to be able to find (or create) this same http listener for already existing Lambdas
so my question is how is the URL
created and where is teh actual HTTP
listener deployed?
Function URLs are dual stack-enabled, supporting IPv4 and IPv6. After you configure a function URL for your function, you can invoke your function through its HTTP(S) endpoint via a web browser, curl, Postman, or any HTTP client.
Creating a function URL (console)Open the Functions page of the Lambda console. Choose the name of the function that you want to create the function URL for. Choose the Configuration tab, and then choose Function URL. Choose Create function URL.
You might be looking for the invoke url,
1. go to https://console.aws.amazon.com/apigateway
2. select api link (which you have deployed on aws lambda).
3. select stages in left side panel and see the invoke url.
Adding a http listener can be done by going to your lambda function, selecting the 'triggers' tab and 'add trigger', finally selecting API Gateway - but as others mentioned this does create a public facing url.
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