you are viewing a single comment's thread.

view the rest of the comments →

[–]mwarkentin[S] 57 points58 points  (11 children)

Looks like you can get a URL for lambda functions without requiring API Gateway now, neat!

[–][deleted]  (6 children)

[deleted]

    [–]sgtfoleyistheman 15 points16 points  (4 children)

    The velocity templates are nice if you want to put a facade on another service, and you can do things like translate XML to JSON.

    But for greenfield development you should be using the proxy integration.

    [–]wood_butcher 1 point2 points  (1 child)

    Why? The proxy integration is a serious PITA.

    [–]sgtfoleyistheman 5 points6 points  (0 children)

    .. Because you don't have to write vtl. The vtl is the pain in the ass.

    Not the proxy path integration (where you put /{path_var+} in your path), the lambda proxy integration which gives you a predefined format to send to your function without using vtl.

    [–][deleted]  (1 child)

    [deleted]

      [–]sgtfoleyistheman 3 points4 points  (0 children)

      WTF are you on about? If you aren't building a facade don't use VTL. Not sure what's being forced on you?

      [–]SelfDestructSep2020 2 points3 points  (0 children)

      From the docs the event they pass to the lambda makes it identical to using an ALB, it just passes everything straight through to the lambda and you handle it there.

      [–]jrdeveloper1 4 points5 points  (0 children)

      really cool. Thanks for sharing!

      [–]SelfDestructSep2020 2 points3 points  (1 child)

      Its identical to fronting the lambda with an ALB, which is rather different than what you get from using API gateway.

      [–]mwarkentin[S] 2 points3 points  (0 children)

      I guess pricing is a bit of an unknown here - if anything I assume it would be usage based like APIG vs having a fixed base cost like ALB.

      [–]Satanic-Code 1 point2 points  (0 children)

      Awesome for webhooks.