> For the complete documentation index, see [llms.txt](https://rubrik.gitbook.io/rubrik-sdk-for-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rubrik.gitbook.io/rubrik-sdk-for-python/beta/rubrik_polaris/accounts/add_account_aws.md).

# add\_account\_aws

Adds AWS account to Polaris

```python
def add_account_aws(self, regions=[], all=False, profiles=[], aws_access_key_id=None, aws_secret_access_key=None):
```

## Arguments

| Name                     | Type | Description                                            | Choices |
| ------------------------ | ---- | ------------------------------------------------------ | ------- |
| regions                  | list | List of AWS regions to configure                       |         |
| all                      | bool | If true import all available profiles (Default: False) |         |
| profiles                 | list | List of explicit profiles to add                       |         |
| aws\_access\_key\_id     | str  | AWS Access Key ID                                      |         |
| aws\_secret\_access\_key | str  | AWS Access Key Secret                                  |         |

## Returns

| Type | Return Value                                                     |
| ---- | ---------------------------------------------------------------- |
| bool | `True` if the account was added successfully, otherwise `False`. |

## Example

```python
from rubrik_polaris import PolarisClient


domain = 'my-company'
username = 'john.doe@example.com'
password = 's3cr3tP_a55w0R)'


client = PolarisClient(domain, username, password, insecure=True)
success = client.add_account_aws(regions=["us-west-2"], all=True)
if success:
    print("AWS Account added successfully!")
```
