Hello Pulumi masters, I am wondering if anyone of ...
# general
w
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
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
This all makes sense thanks I will set things up that way
👍🏼 1