def attach_role_policy(policy_name, role_name,
                  region=None, key=None, keyid=None, profile=None):
    '''
    Attach a managed policy to a role.