Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Port Lambda URL invocation support to ASF provider #7225

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

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

dominikschubert
Copy link
Member

Mostly C&P of existing code with the intention of decoupling it from the legacy provider since going forward changes should be focused on the ASF provider anyway and some of the mapping concepts don't apply anymore.

Also:

  • Now supports a correct response for unhandled exceptions and added a corresponding test.
  • Added a router class that follows the design of the router for the apigateway ASF provider.

@dominikschubert dominikschubert self-assigned this Nov 22, 2022
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 22, 2022 22:22 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 22, 2022 22:37 Inactive
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 82.834% when pulling 2150881 on feat_lambda-url-invoke-asf into ab870ed on master.

@github-actions
Copy link

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 15m 15s ⏱️ - 3m 29s
1 489 tests +1  1 269 ✔️ ±0  220 💤 +1  0 ±0 
2 091 runs  +3  1 635 ✔️ ±0  456 💤 +3  0 ±0 

Results for commit 2150881. ± Comparison against base commit ab870ed.

@@ -1258,7 +1268,7 @@ def create_function_url_config(
function_name=function_name,
cors=cors,
url_id=url_id,
url=f"https://{url_id}.lambda-url.{context.region}.on.aws/",
url=f"http://{url_id}.lambda-url.{context.region}.{LOCALHOST_HOSTNAME}:{config.EDGE_PORT_HTTP or config.EDGE_PORT}/", # TODO: https support
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to make the LOCALHOST_HOSTNAME part configurable at some point, but should be fine for a first version.

@dominikschubert dominikschubert merged commit d3e72e3 into master Nov 23, 2022
@dominikschubert dominikschubert deleted the feat_lambda-url-invoke-asf branch November 23, 2022 10:27
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

Successfully merging this pull request may close these issues.

3 participants