0

I'm not familiar with AWS lambdas.

Does AWS provide swagger or anything similar to lambdas?

my use case doesn't require me to create rest endpoint to the lambdas. do I also need to play around with gateways as well?

  • I'm not looking for cli solutions: sam/aws-cli/serverless/...
4
  • Swagger and Lambda are two different things. Can you please explain more detail - what kind of REST API you are looking for? Commented Dec 31, 2020 at 11:56
  • This might cover both(aws lambda + api gateway for rest api). Plus as pointed out both lambda and rest api(api gateway + http api) are different things. Commented Dec 31, 2020 at 12:35
  • I'm looking for official AWS POST/DELETE REST APIs to create and delete lambdas. for example: curl -XPOST aws.com/add-lambda ... Commented Dec 31, 2020 at 13:07
  • Is there anything stopping you from using the official AWS SDKs or CLIs? They're built for that use case. Otherwise you'll need to implement request signing etc. yourself to talk to the APIs directly. Commented Dec 31, 2020 at 13:32

1 Answer 1

1

Everything in AWS uses the same public API that AWS provides. How that's implemented depends on the service. The official SDKs/CLIs use that same API and abstract the implementation details for you, so I'd recommend sticking to those.

If you want to build your own tool to talk to the AWS APIs or more specifically Lambda, you can have a look at the official developer guide, which includes an API-Reference.

More specifically you're going to need these two actions:

You should be aware, that you need to implement the Signature v4 process to sign your requests with your AWS credentials yourself in that case, which is non-trivial. This signing process is used to authenticate yourself to AWS or more specifically to Identity and Access Management.

The API-Reference doesn't directly list the API-endpoints, but you're going to have to use the one for lambda in the region you want to create/delete your functions in, e.g. https://lambda.eu-central-1.amazonaws.com, where eu-central-1 would be your region. For a full list of the service endpoints for Lambda take a look at this documentation.

I'd really recommend you stick to one of the official SDKs/CLIs - this will make your life much easier.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.