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

millions-furniture-75402

06/03/2020, 1:31 PM
I know this should be straight forward, but I’m struggling, how do I attach a IAM Role to an ec2 instance? I know I attach an instance profile, but what if I want to use a managed policy?
No magic bullet, I think I have to create the role, then attach a policy to the role, then create the instance profile from the role.
m

millions-furniture-75402

06/03/2020, 1:38 PM
Thank you for that!
i

important-appointment-55126

06/03/2020, 1:39 PM
Crosswalk also looks to have helpers here, if you’re using a language supported by that https://www.pulumi.com/docs/guides/crosswalk/aws/iam/#iam-roles
👍 1