pod_identities
Creates, updates, deletes, gets or lists a pod_identities resource.
Overview​
| Name | pod_identities |
| Type | Resource |
| Id | aws.eks_auth.pod_identities |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
assume_role_for_pod_identity | exec | cluster_name, region, token | The Amazon EKS Auth API and the AssumeRoleForPodIdentity action are only used by the EKS Pod Identity Agent. We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if credentials from an EKS Pod Identity association are available in the pod, the latest versions of the SDKs use them automatically. |
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 |
|---|---|---|
cluster_name | string | The name of the cluster for the request. |
region | string | AWS region (default: us-east-1) |
Lifecycle Methods​
- assume_role_for_pod_identity
The Amazon EKS Auth API and the AssumeRoleForPodIdentity action are only used by the EKS Pod Identity Agent. We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if credentials from an EKS Pod Identity association are available in the pod, the latest versions of the SDKs use them automatically.
EXEC aws.eks_auth.pod_identities.assume_role_for_pod_identity
@cluster_name='{{ cluster_name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"token": "{{ token }}",
"eksNodeName": "{{ eksNodeName }}",
"instanceId": "{{ instanceId }}",
"zone": "{{ zone }}"
}'
;