I am trying to create a new group with permissions based on a policy template. When creating a new group in the AWS console, there is a list of policy template to base the group permissions on. How can I replicate this behavior in boto?
I have:
import boto.iam as botoi
iam_1 = botoi.IAMConnection()
iam_1.create_group("group1")
iam_1.put_group_policy(groupname = "group1", policy_name="???")
Is there a way to get a list of all the policy templates, and the JSON corresponding to them, so that I can pass that back to put_group_policy
?
Thanks.
Aucun commentaire:
Enregistrer un commentaire