Invoke Lambda without public url #535
Replies: 3 comments
-
SDK has |
Beta Was this translation helpful? Give feedback.
-
@xandernewton Are you referring to the Lambda Function URL or the Lambda service endpoint? For Lambda Function URL, you can simply disable it. For Lambda service endpoint, you can create private link in your vpc to access it. But the Lambda Service Endpoint can't be turned off. |
Beta Was this translation helpful? Give feedback.
-
I might have misunderstood how the library works. What I want to able to do is to define the lambda function in CDK using the lambda docker construct and then once the lambda is setup, just invoking as normal with boto3 with a json payload. In the fast API examples if you need to call an endpoint with a url. I'm wondering if this can be achieved with a json payload. From what I gather, currently once the lambda is deployed it has a public url? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to invoke the lambda through boto3 and not by calling the public URL of lambda? Can the public URL of the lambda be turned off?
Beta Was this translation helpful? Give feedback.
All reactions