rolesanywhere-credential-helper
Daily docker builds of AWS roles anywhere credential helper for Linux, including arm64 arch.
2.2K
↖️ Table of Contents
Roles Anywhere Credential Helper - Docker ImageThis repository serves as a source for gcavalcante8808/rolesanywhere-credential-helper docker image with daily Linux
builds for arm64 and amd64.
You can call the image directly using the following command:
docker run -it --rm gcavalcante8808/rolesanywhere-credential-helper:v1.1.1 version
You can also copy the binary in your docker image by using the following statement in your Dockerfile:
COPY --from=gcavalcante8808/rolesanywhere-credential-helper:v1.1.1 /usr/bin/aws_signing_helper /usr/bin/aws_signing_helper
Important note: the credentials helper binary is build using the main aws script and thus relies on linux and gblic libraries to work.
.aws/credentials fileIt's possible to create a credentials file automatically by settings the following environment variables:
| Environment Variable | Description | Default | Required? |
|---|---|---|---|
| CREATE_AWS_CREDENTIALS_FILE | Should the entrypoint create an aws credential file? Any value set here will enable the behavior. | Empty - the file is not created by default. | NO |
| CREDENTIALS_FILE_PATH | Where should the entrypoint create the credentials file? | If not provided, ${HOME}/.aws is assumed, which translates to /root/.aws in the default configuration. | NO |
| CERTIFICATE_FILE_PATH | Filesystem full path of the PEM public Key. | N/A | when CREATE_AWS_CREDENTIALS_FILE is set. |
| CERTIFICATE_KEY_PATH | Filesystem Full Path of the PEM private key. | N/A | when CREATE_AWS_CREDENTIALS_FILE is set. |
| TRUST_ANCHOR_ARN | AWS Roles Anywhere Trust Anchor ARN. | N/A | when CREATE_AWS_CREDENTIALS_FILE is set. |
| PROFILE_ARN | AWS Roles Anywhere Trust Profile ARN. | N/A | when CREATE_AWS_CREDENTIALS_FILE is set. |
| ROLE_ARN | AWS IAM Role ARN. | N/A | when CREATE_AWS_CREDENTIALS_FILE is set. |
The credentials file created use the external authentication format like the one bellow:
[default]
credential_process = ./aws_signing_helper credential-process --certificate /path/to/certificate --private-key /path/to/private-key --trust-anchor-arn arn:aws:rolesanywhere:region:account:trust-anchor/TA_ID --profile-arn arn:aws:rolesanywhere:region:account:profile/PROFILE_ID --role-arn arn:aws:iam::account:role/role-name-with-path
Check https://docs.aws.amazon.com/rolesanywhere/latest/userguide/credential-helper.html#credential-helper-examples for details regarding the helper command.
Author: Gabriel Cavalcante (gabriel.cavalcante88 at gmail.com)
Content type
Image
Digest
sha256:b9a5cdf99…
Size
40.1 MB
Last updated
almost 2 years ago
docker pull gcavalcante8808/rolesanywhere-credential-helper:v1.1.1_alpine3.19