Algo supports multiple methods for providing AWS credentials, following standard AWS practices:
./algo -e "aws_access_key=YOUR_KEY aws_secret_key=YOUR_SECRET"
export AWS_ACCESS_KEY_ID=YOUR_KEY
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET
export AWS_SESSION_TOKEN=YOUR_TOKEN # Optional, for temporary credentials
./algo
~/.aws/credentials
AWS_SHARED_CREDENTIALS_FILE
environment variableAWS_PROFILE
environment variable (defaults to “default”)After running aws configure
or manually creating ~/.aws/credentials
:
[default]
aws_access_key_id = YOUR_KEY_ID
aws_secret_access_key = YOUR_SECRET_KEY
[work]
aws_access_key_id = WORK_KEY_ID
aws_secret_access_key = WORK_SECRET_KEY
aws_session_token = TEMPORARY_TOKEN # Optional
To use a specific profile:
AWS_PROFILE=work ./algo
If Algo isn’t finding your credentials:
ls -la ~/.aws/credentials
AWS_PROFILE=your-profile
aws sts get-caller-identity
If credentials are found but authentication fails: