Configure AWS to get files from S3

As root user

AWS official documentation: here

root $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
root $ unzip awscliv2.zip
root $ ./aws/install
root $ aws --version
aws-cli/2.7.35 Python/3.9.11 Linux/5.15.0-1016-oracle exe/x86_64.ubuntu.20 prompt/off

As mongodb user

Create ~.aws/config file with following contents:

mongodb $ cat ~.aws/config
[default]
region = eu-central-1
output = JSON

Create ~.aws/credentials file with following contents:

mongodb $ cat ~.aws/credentials
[default]
aws_access_key_id=*******
aws_secret_access_key=********
aws_session_token=*******

mongodb:~ chmod 600 ~.aws/*
mongodb $ aws s3 ls s3://dbi-services-yak-artifacts/rdbms/mongodb/6.0/

Last updated