https://pulumi.com logo
#general
Title
# general
a

able-artist-91005

03/06/2024, 11:14 PM
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

little-cartoon-10569

03/06/2024, 11:39 PM
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

able-artist-91005

03/07/2024, 1:17 AM
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.