Installation
AWS CLI
# macOS/Linux
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
# Windows (PowerShell)
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msiConfigure
Configure Profile
aws configure --profile v2capsule
# When prompted:
# AWS Access Key ID: YOUR_ACCESS_KEY
# AWS Secret Access Key: YOUR_SECRET_KEY
# Default region name: us-east-1
# Default output format: jsonCommon Operations
Upload a File
aws s3 cp myfile.txt s3://my-bucket/myfile.txt \
--endpoint-url http://your-server-ip:3000 \
--profile v2capsuleDownload a File
aws s3 cp s3://my-bucket/myfile.txt ./myfile.txt \
--endpoint-url http://your-server-ip:3000 \
--profile v2capsuleList Objects
aws s3 ls s3://my-bucket/ \
--endpoint-url http://your-server-ip:3000 \
--profile v2capsuleDelete a File
aws s3 rm s3://my-bucket/myfile.txt \
--endpoint-url http://your-server-ip:3000 \
--profile v2capsule