cloudera.cloud.env_cred module – Create, update, and destroy CDP credentials
Note
This module is part of the cloudera.cloud collection (version 2.5.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cloud.env_cred
.
Synopsis
Create, update, and destroy CDP credentials.
The module support check_mode.
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
The ApplicationId of the Azure Application used for access |
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The target cloud provider for the Credential. Required if state=present. Choices:
|
|
Capture the CDP SDK debug log. Choices:
|
|
Delay period in seconds between retries Default: |
|
Descriptive text for the Credential. Default: |
|
The name of the Credential. The name must conform to the CDP Credential format, which is lowercase letters, numbers, and hyphens only. |
|
If provided, the CDP SDK will use this value as its profile. |
|
Number of times to retry the create operation if a possible eventual consistency error is returned Set to 0 to fail immediately on such errors Default: |
|
The CDP cross-account role for AWS For cloud=aws, this is the Role ARN for the cross-account role. |
|
The Secret for the Application access on Azure The path to the Key File for the Service Account being used on Google |
|
Establish the state of the Credential in CDP. Choices:
|
|
The Subscription ID or URI of the Azure Subscription being used |
|
The URI of the Azure Tenant |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Create a CDP Credential for AWS
- cloudera.cloud.env_cred:
state: present
cloud: aws
name: example-credential
description: This is an example Credential
role: arn:aws:iam::123456789123:role/some-cross-account-role
# Delete a CDP Credential
- cloudera.cloud.env_cred:
state: absent
name: example-credential
# Create a CDP Credential for AWS and log the output of the CDP SDK in the return values
- cloudera.cloud.env_cred:
name: example-credential
debug: yes
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns an object for the Credential. Returned: success |
|
The name of the cloud provider for the Credential. Returned: always Sample: |
|
The name of the Credential. Returned: always Sample: |
|
The CDP CRN value derived from the cross-account Role ARN used during creation. Returned: always Sample: |
|
The description of the Credential. Returned: when supported Sample: |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |