https://pulumi.com logo
#python
Title
c

colossal-plastic-46140

07/16/2019, 4:01 PM
Hi, I am trying to understand how to do two things here. 1) Take an existing iam instance profile, and get it 2) Attach an existing managed policy to the instance profile
Copy code
instance_profile = iam.get_instance_profile(name="ab-dev")
policy = iam.get_policy(arn="*:policy/policy_test")
iam.RolePolicyAttachment(role=instance_profile,resource_name="policy_test",policy_arn=policy)
and it seems to be complaining about awaits and async