Using Console
Using CLI
policy.json
):
put-user-policy
command to attach the inline policy to a specific IAM user.put-group-policy
command to attach the inline policy to a specific IAM group.put-role-policy
command to attach the inline policy to a specific IAM role.Using Python
kms:Decrypt
action:put_user_policy
method to attach the policy to an IAM user.