https://pulumi.com logo
Title
e

echoing-zebra-28421

07/21/2021, 6:03 PM
I have this example. It's one route with a method type post
new aws.apigatewayv2.Route(
     test-route,
    {
      apiId: apigw.id,
      routeKey: "POST /api/pets",
      target: pulumi.interpolate`integrations/${integration.id}`,
    },
    { provider },
  );
But, I need to create a route to pass a parameter to the endpoint
new aws.apigatewayv2.Route(
     test-route,
    {
      apiId: apigw.id,
      routeKey: "GET /api/pets/3",
      target: pulumi.interpolate`integrations/${integration.id}`,
    },
    { provider },
  );
How do I create the route that receives a parameter in the url of 
/api/pets/$id
? Could it be something like that? 
routeKey: "GET /api/pets/{id}",
c

cool-fireman-90027

07/21/2021, 7:04 PM
Does the following page help?
e

echoing-zebra-28421

07/21/2021, 8:41 PM
but that's with version 1. I'm using versión
apigatewayv2
🙇‍♂️