First create create AWS credentials via the console, or speak to one of the other devs to have some created for you.
brew install awscli aws-shell
awscliusing the generated Access Key
$ aws configure > AWS Access Key ID [None]: <SECRET> > AWS Secret Access Key [None]: <SECRET> > Default region name [None]: us-east-1 > Default output format [None]: json
Some Hadoop/S3 libraries look for the credentials in the
AWS_* environment variables instead of
so you may want to define
Note: these environment variables do not play well with
assume-role, so they should not be automatically sourced. Source them at your convenience.
ln -s ~/.aws/credentials ~/.aws_credentials cat > ~/.aws/env_config << 'EOF' export AWS_ACCESS_KEY_ID=<TO_REPLACE> export AWS_SECRET_ACCESS_KEY=<TO_REPLACE> EOF
aws ec2 describe-instance aws s3 ls narrative-artifact-releases
brew install packer
assume-role will request and set temporary credentials in your shell environment variables for a given (AWS IAM) role.
We use it to temporarily acquire a role while performing certain tasks that require additional permissions.
brew install remind101/formulae/assume-role