Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Before using the Akeyless Ansible plugin, ensure the following prerequisites are

* Python 3 installed on the Ansible control node.
* Ansible installed.
* For `aws_iam` authentication, install the Akeyless CLI when the playbook must generate `cloud_id` explicitly. For installation steps, see [Akeyless CLI documentation](https://docs.akeyless.io/docs/cli).
* The Akeyless Python package installed:

```shell
Expand Down Expand Up @@ -170,6 +171,31 @@ login:
uid_token: '<uid_token>'
```

### AWS IAM cloud identity for login

In some environments, `akeyless.secrets_management.login` with `access_type: 'aws_iam'` may require an explicit `cloud_id` value.

Generate the value with the Akeyless CLI, then pass it to the `login` task:

```yaml
- name: Generate cloud identity for AWS IAM
ansible.builtin.command: akeyless get-cloud-identity --cloud-provider aws_iam
register: aws_identity
changed_when: false

- name: Login via AWS IAM
login:
akeyless_api_url: 'https://api.akeyless.io'
access_id: '<Access ID>'
access_type: 'aws_iam'
cloud_id: '{{ aws_identity.stdout | trim }}'
register: auth_res
```

> ℹ️ **Note:**
>
> `cloud_id` is the full output from `akeyless get-cloud-identity --cloud-provider aws_iam`.

Where:

* `akeyless_api_url`: Gateway URL API V2 endpoint that is `https://Your_GW_URL:8000/api/v2`.
Expand Down
Loading