Can we call lambda function from outside aws without using API Gateway? I want to call lambda function directly from outside aws services is it possible?
AWS Lambda functions can be triggered by:
From Supported Event Sources documentation:
In addition to invoking Lambda functions using event sources, you can also invoke your Lambda function on demand. You don't need to preconfigure any event source mapping in this case. However, make sure that the custom application has the necessary permissions to invoke your Lambda function.
For example, user applications can also generate events (build your own custom event sources). User applications such as client, mobile, or web applications can publish events and invoke Lambda functions using the AWS SDKs or AWS Mobile SDKs such as the AWS Mobile SDK for Android.
So, anything on the Internet can invoke a Lambda function, but it will need to use AWS credentials to authenticate.