Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the new feature AWS Lambda URLs #234

Open
ixartz opened this issue Apr 28, 2022 · 2 comments
Open

Support for the new feature AWS Lambda URLs #234

ixartz opened this issue Apr 28, 2022 · 2 comments

Comments

@ixartz
Copy link

ixartz commented Apr 28, 2022

Hi there,

AWS has recently announce a new feature: https://aws.amazon.com/blogs/aws/announcing-aws-lambda-function-urls-built-in-https-endpoints-for-single-function-microservices/
And, Serverless Framework has also added support this: https://www.serverless.com/blog/aws-lambda-function-urls-with-serverless-framework

I have tried this feature with serverless-http and it doesn't seems to work. The server doesn't start:

DOTENV: Loading environment variables from .env.development:
Bundling with Webpack...
Watching for changes...

Starting Offline at stage dev (us-east-1)

Issues checking in progress...
Offline [http for lambda] listening on http://localhost:3002
Function names exposed for local invocation by aws-sdk:
           * app: serverless-boilerplate-offline-app
No issues found.

Using the previous configuration I got this message when the server is ready:

Server ready: http://localhost:4000 🚀

Enter "rp" to replay the last request
No issues found.

This message never appears with the new function: AWS Lambda URLs.

@mjoynes-14four
Copy link

I was able to get it to work with ExpressJS but it's not returning a response.

@mjoynes-14four
Copy link

Actually, if you modify their example to return context.res it returns the response as it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants