cluster_session_credentials
Creates, updates, deletes, gets or lists a cluster_session_credentials resource.
Overview
| Name | cluster_session_credentials |
| Type | Resource |
| Id | aws.emr.cluster_session_credentials |
Fields
The following fields are returned by SELECT queries:
- get_cluster_session_credentials
| Name | Datatype | Description |
|---|---|---|
credentials | object | The credentials that you can use to connect to cluster endpoints that support username and password authentication. |
expires_at | string (date-time) | The time when the credentials that are returned by the GetClusterSessionCredentials API expire. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_cluster_session_credentials | select | region | Provides temporary, HTTP basic credentials that are associated with a given runtime IAM role and used by a cluster with fine-grained access control activated. You can use these credentials to connect to cluster endpoints that support username and password authentication. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_cluster_session_credentials
Provides temporary, HTTP basic credentials that are associated with a given runtime IAM role and used by a cluster with fine-grained access control activated. You can use these credentials to connect to cluster endpoints that support username and password authentication.
SELECT
credentials,
expires_at
FROM aws.emr.cluster_session_credentials
WHERE region = '{{ region }}' -- required
;