lowercase93
lowercase93

Reputation: 365

Amazon Lambda use cases

Is it possible to make some kind of HTTP request that will trigger Lambda and allow it to build a response for the request?

Is it possible for Lambda to access CloudFront cache directly or somehow get the data it needs. I guess it can be done making HTTP requests to CloudFront, but maybe there is more direct way to do that, no?

Or all this stuff I'm asking here is a peace of **** and I better go and buy a new server or optimize my code (actually, i would like to, but manager wants CloudFront + Lambda, so I'm trying to figure out if that is possible, but the docs don't give me an answer. Am I blind maybe?)

Upvotes: 0

Views: 692

Answers (1)

alltej
alltej

Reputation: 7285

You can expose your lambda function via an API gateway. Then your lambda function can just run code that will access other services/resources (CloundFront, SNS, SQS, etc). Use the AWS SDK to access these services.

See Amazon API Gateway documentation: http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started.html

Upvotes: 3

Related Questions