https://pulumi.com logo
#general
Title
# general
w

witty-barista-69390

10/05/2022, 10:31 PM
Hello Pulumi masters, I am wondering if anyone of you have a recommendation on how to use a single API Gateway across multiple repos so I can keep the same base domain. I want to be able to add routes to an existing Gateway vs recreate the gateway.
l

limited-rainbow-51650

10/05/2022, 11:06 PM
Is the combination of
Api
and
Route
what you are after? https://www.pulumi.com/registry/packages/aws/api-docs/apigatewayv2/route/ The example in the
Route
resource shows both in combination.
If it is, you can create your
Api
in base Pulumi project, export the ID as a stack output. Then from other projects, you can use a StackReference to retrieve the ID of the Api and create additional
Route
resources.
w

witty-barista-69390

10/06/2022, 6:55 PM
This all makes sense thanks I will set things up that way
👍🏼 1
2 Views