https://pulumi.com logo
#aws
Title
# aws
l

little-cartoon-10569

02/02/2024, 1:14 AM
Does anyone know what values can be set as the "role" parameter of an iam.RolePolicyAttachment? All my code uses iam.Role objects, which work; the docs all say role name, but I guess I couldn't get that to work some time in the past (hence using the Role object). I'm wondering if a role ARN would work there, but I'm not at my computer to test, right now..
A link to the provider implementation would be ideal.. I'll start hunting for that, now.
c

cuddly-journalist-77210

02/02/2024, 12:40 PM
interesting, i always pass role name and it works. seems like thats the only way to do it in go. i can see following types in docs for typescript though: string | Role -> Role object or role name
i think the issue you faced in past is the dependency resolver tried to create policy attachment before actually creating the role because you passed the name as a string directly to the rolepolicyattachment instead of using output of iam.Role