Skip to content

Docker-Collection/docker-aws-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker AWS

Simple aws cli & s3.

Using Docker Command

Upload folder files to s3

Input all <> value.

docker run \
  --rm -it \
  -v $(pwd):/<PATH> \
  -e AWS_ACCESS_KEY_ID="<ACCESS_KEY_ID>" \
  -e AWS_SECRET_ACCESS_KEY="<SECRET_ACCESS_KEY>" \
  -e AWS_S3_ENDPOINT="<OPTION_S3_ENDPOINT>" \
  -e SOURCE_DIR="./<PATH>" \
  -e DEST_DIR="<OPTION>" \
  -e AWS_S3_BUCKET="<S3_BUCKET_NAME>" \
  -e AWS_REGION="us-east-1" \
  -e AWS_COMMAND="sync" \
  ghcr.io/docker-collection/aws-s3:latest

Download from s3

Input all <> value.

Value SOURCE_DIR and DEST_DIR will be reverse.

docker run \
  --rm -it \
  -v $(pwd):/<PATH> \
  -e AWS_ACCESS_KEY_ID="<ACCESS_KEY_ID>" \
  -e AWS_SECRET_ACCESS_KEY="<SECRET_ACCESS_KEY>" \
  -e AWS_S3_ENDPOINT="<OPTION_S3_ENDPOINT>" \
  -e DEST_DIR="<DEST>" \
  -e SOURCE_DIR="./<PATH>" \
  -e AWS_S3_BUCKET="<S3_BUCKET_NAME>" \
  -e AWS_REGION="us-east-1" \
  -e AWS_COMMAND="cp" \
  ghcr.io/docker-collection/aws-s3:latest

List s3

Input all <> value.

docker run \
  --rm -it \
  -e AWS_ACCESS_KEY_ID="<ACCESS_KEY_ID>" \
  -e AWS_SECRET_ACCESS_KEY="<SECRET_ACCESS_KEY>" \
  -e AWS_S3_ENDPOINT="<OPTION_S3_ENDPOINT>" \
  -e SOURCE_DIR="<OPTION>" \
  -e AWS_S3_BUCKET="<S3_BUCKET_NAME>" \
  -e AWS_REGION="us-east-1" \
  -e AWS_COMMAND="ls" \
  ghcr.io/docker-collection/aws-s3:latest

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages