Reputation: 7145
I am using lambda to create ec2 machine using boto3. I need to give the instance an IAM role. In boto3 we give the IAM role via InstanceProfiles
but when we create a role that has access to Lambda no instance profiles come up.
So how do we achieve this?
Upvotes: 0
Views: 78
Reputation: 269861
You would need to:
create_instance_profile()
to create a named profileadd_role_to_instance_profile()
to associate an IAM Role with the Instance ProfileUpvotes: 1