chiefbiiko / dynamodb

deno <3 dynamodb
MIT License
25 stars 11 forks source link

Assume Role With Web Identity Provider #32

Open helloworldless opened 2 years ago

helloworldless commented 2 years ago

Is it possible assume role rather than explicitly providing the credentials?

Context: When running on Kubernetes (EKS), we use a Kubernetes ServiceAccount. We don't even have these values: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN. Instead we have AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE. So for example, when using boto3, it automagically detects this and handles assuming the role.

boto3 Assume Role With Web Identity Provider

EKS Docs IAM roles for service accounts