GithubHelp home page GithubHelp logo

Comments (8)

austencollins avatar austencollins commented on June 20, 2024

Updated.

from serverless.

austinrivas avatar austinrivas commented on June 20, 2024

using API gateway to pass context information into the lambda is huge, I'd like to see how that works but the link you provide is behind aws auth.

from serverless.

austencollins avatar austencollins commented on June 20, 2024

@austinrivas

From the AWS Developer Forums...

      Hi, 

      The following context variables are now available in mapping templates. Not the exact solution you wer looking for, but some of that information will be available now. The main part missing would be the full hostname part, but the apiId, stage, and resourcePath are useful for determining path that calls the Lambda function.

      $context.stage
      $context.apiId
      $context.resourcePath
      $context.resourceId
      $context.httpMethod

      This will be documented in greater detail soon. 

      Thanks,
      Jack

from serverless.

austinrivas avatar austinrivas commented on June 20, 2024

Great, now we just need to find a way to tie that into your middle-ware and aws config, I'll take a crack at it later today. Thanks for reaching out to the aws team btw, seem like they have been really supportive.

from serverless.

austencollins avatar austencollins commented on June 20, 2024

Update 8/13/15:

We’re currently working on a document that outlines the specifications for JAWS v1.0.0.

A proposed resolution to this issue in particular is included in that document.

Today or tomorrow, we will share the document for everyone to comment on because your feedback is essential.

from serverless.

ivawzh avatar ivawzh commented on June 20, 2024

Hi @ac360 I am wondering where the document is?

People mentioned it could be solvable by setting up route53 latency routing with API Gateway - https://forums.aws.amazon.com/thread.jspa?threadID=220478. However, I could not find SNI setting in Cloudformation for Route53.

Would love to know your opinions.

from serverless.

nickalto avatar nickalto commented on June 20, 2024

Looks like this is now possible with Lambda@Edge http://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html

from serverless.

pmuens avatar pmuens commented on June 20, 2024

Thanks for the update @nickalto 👍

@horike37 just opened up an issue for this a few days ago: #3944 🎉

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.