Hi, I am trying to understand how to do two things...
# python
c
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