Hi, I have created an API `Deployment` and its `St...
# aws
s
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
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:
Copy code
pulumi import aws:apigateway/stage:Stage example 12345abcde/example
👍 1
So it looks like what's probably the tail end of the ARN.
👍 1
s
Thanks!