Hi all, just getting started with pulumi and AWS a...
# aws
p
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
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