https://pulumi.com logo
Title
s

sticky-country-73582

09/17/2022, 4:47 PM
Hi, I have created an API
Deployment
and its
Stage
using the
stage_name
argument of the deployment resource. Now I want to do lookup for the stage and add access logging to it. How can I get the stage resource from this setup, i.e., what would be the
id
in the
get
method for
Stage
lookup in https://www.pulumi.com/registry/packages/aws/api-docs/apigateway/stage/#look-up?
s

stocky-restaurant-98004

09/17/2022, 9:38 PM
We don't make this as obvious as I would like, but the ID will always be the same as whatever the param is for
pulumi import
. In this case:
pulumi import aws:apigateway/stage:Stage example 12345abcde/example
👍 1
So it looks like what's probably the tail end of the ARN.
I've filed a issue for this, FYI: https://github.com/pulumi/pulumi-terraform-bridge/issues/609
👍 1
s

sticky-country-73582

09/19/2022, 4:31 PM
Thanks!