The aws-sm-kubernetes-helper is a small application/container that authenticates with AWS Secrets Manager, pulls a secret, and places it in a well-known, configurable location. It is most commonly used as an init container to supply credentials to applications or services.
Configuration
AWS_REGION - the AWS region the secret is stored in (ex. us-west-2)
AWS_ACCESS_KEY_ID - the AWS access key ID of the IAM user that has secretsmanager:GetSecretValue access to the saved secret
AWS_SECRET_ACCESS_KEY - the AWS secret access key of the same IAM user
SECRET_NAME - the name of the AWS secret to be retrieved
SECRET_DEST_PATH - the destination path on disk to store the secret. Usually this is a shared volume. Defaults to /var/run/secrets/aws-sm/.secret.
Example Usage
AWS credentials retrieved from a generic Kubernetes secret 'aws-secret', containing id, key, and region key/value pairs