What's the correct syntax for importing an IAM rol...
# general
a
What's the correct syntax for importing an IAM role to a stack? The docs aren't clear. I'm using
pulumi import <arn> <resource name in pulumi code>
. But what am I supposed to put as an
id
?
This example isn't much better. What
id
am I supposed to reference?
l
The example includes all the instructions. The section you link says:
Using pulumi import, import IAM Roles using the name.
The name of the role is the import id.
a
I thought they had typo in their example and that the first positional argument was supposed to be an
arn
. Seems it's actually supposed to be type identifier.