<#C84L4E3N1|general> <#CRH5ENVDX|aws> <#CDE799L1M|...
# general
f
#general #aws #python I am struggling to find correct pulumi import [type] [name] [flag] configuration to import aws:iam role? "arnawsiam123456789012instance-profile/SomeRole123-123"
f
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
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