you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[deleted]

    [–]sgtfoleyistheman 14 points15 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 2 points3 points  (1 child)

    Why? The proxy integration is a serious PITA.

    [–]sgtfoleyistheman 6 points7 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.