https://pulumi.com logo
#aws
Title
# aws
p

purple-ice-75626

09/01/2023, 6:27 PM
Hi all, just getting started with pulumi and AWS and I'm wondering how I'd configure a route as $default, when it looks like the API gateway creates one automatically - have tried importing, but looks like it can't interpolate the apigateway ID. Any help is appreciated!
s

stocky-restaurant-98004

09/01/2023, 9:09 PM
Import has to take a resolved string value, not
pulumi.Input<string>
. You can create this resource in an
apply
, but I don't think that's what you want. That is, it would work programmatically, but I suspect there's a better way to create the infra you're trying to make.
I don't know API Gateway so well, but here's what Pulumi AI has to say on the matter: https://www.pulumi.com/ai/conversations/d5a5c6fb-dbff-4f9b-b753-d65ae2ab7df8