---
name: "euare-roleaddpolicy"
section: "1"
platform: "linux"
package: "euca2ools"
version: "3.3.1-2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/euare-roleaddpolicy"
---

# euare-roleaddpolicy(1)

Add a new policy to a role. To add more complex policies than this tool supports, see euare-roleuploadpolicy(1).

## NAME

euare-roleaddpolicy - Add a new policy to a role.  To add more complex policies than this tool supports, see [euare-roleuploadpolicy(1)](/euare-roleuploadpolicy/1.md).

## SYNOPSIS

euare-roleaddpolicy **-p** POLICY **-e** {Allow,Deny} **-a** ACTIONS **-c** RESOURCES

- \[-o\] \[--as-account ACCOUNT\] \[-U URL\]

  \[--region USER@REGION\] \[-I KEY\_ID\] \[-S KEY\] \[--security-token TOKEN\] \[--debug\] \[--debugger\] \[--version\] \[-h\] ROLE

## DESCRIPTION

Add a new policy to a role.  To add more complex policies than this tool supports, see [euare-roleuploadpolicy(1)](/euare-roleuploadpolicy/1.md).

### positional arguments:

- ROLE

  role to attach the policy to (required)

### optional arguments:

- **-p** POLICY, **--policy-name** POLICY

  name of the new policy (required)

- **-e** {Allow,Deny}, **--effect** {Allow,Deny}

  whether the new policy should Allow or Deny (required)

- **-a** ACTIONS, **--action** ACTIONS

  action(s) the policy should apply to (at least one required)

- **-c** RESOURCES, **--resource** RESOURCES

  resource(s) the policy should apply to (at least one required)

- **-o**, **--output**

  also display the newly-created policy

- **--as-account** ACCOUNT

  \[Eucalyptus cloud admin only\] run this command as the administrator of another account

- **-U** URL, **--url** URL

  identity service endpoint URL

- **--region** USER@REGION

  region and/or user names to search when looking up config file data

**-I** KEY\_ID, **--access-key-id** KEY\_ID

**-S** KEY, **--secret-key** KEY

**--security-token** TOKEN

- **--debug**

  show debugging output

- **--debugger**

  launch interactive debugger on error

- **--version**

  show the program's version and exit

- **-h**, **--help**

  show this help message and exit
