Create a Virtual Environment for your project
- mkdir $HOME/py36venv
- python3 -m venv $HOME/py36venv
Activate 3.6 virtual Environment
- source $HOME/py36venv/bin/activate
Install AWS Commandline
- pip install awscli
- chmod 755 $HOME/py36venv/bin/aws
- aws --version
- aws configure
AWS Access Key ID [None]: ----------------------
AWS Secret Access Key [None]: ----+----+---------------
Default region name [None]: us-east-2
Default output format [None]:
- aws s3 ls
- aws s3 sync local_dir/ s3://my-s3-bucket
- aws s3 sync s3://my-s3-bucket local_dir/
Comments
Post a Comment