awslabs / aws-lambda-rust-runtime

A Rust runtime for AWS Lambda
Apache License 2.0
3.29k stars 335 forks source link

[examples/http-axum-apigw-authorizer] How to deploy? #861

Closed hffmnn closed 4 months ago

hffmnn commented 4 months ago

Hi,

is there an example of how to deploy examples/http-axum-apigw-authorizer? When deploying via cargo lambda deploy it only deploys the lambda but no API GW. And then there shouldn't be an authorizer, right?

Did I miss something?

bnusunny commented 4 months ago

Yes, this example only creates a Lambda function. You need to create an API Gateway separately.

There are examples of how to create an API Gateway + Lambda Authorizer + Lambda function. Such as this one on ServerlessLand.