https://pulumi.com logo
Title
f

flat-monkey-80334

05/03/2021, 4:55 PM
#general #aws #python I am struggling to find correct pulumi import [type] [name] [flag] configuration to import aws:iam role? "arn:aws:iam:123456789012:instance-profile/SomeRole123-123"
f

flat-monkey-80334

05/03/2021, 5:27 PM
Hi Piers, many thanks. however, it is the problem. the doc says the role can be imported using "name" and the command line doesn't have "name" only "developer" and "developer_name". I am trying to import a service role. I also checked pulumi import cli document and I don't know what to use for ID, "arn" is not working. so a bit lost...
b

brave-planet-10645

05/04/2021, 8:39 AM
So for example, I've got an IAM role with the ARN
arn:aws:iam::123456:role/api-lambda-role-17fe8a4
. If I wanted to import that I'd use
pulumi import aws:iam/role:Role iam-role-name api-lambda-role-17fe8a4