Skip to content

Instantly share code, notes, and snippets.

@tankhuu
Created May 6, 2020 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tankhuu/82e14b8dd78aea88067612929e5ac7b0 to your computer and use it in GitHub Desktop.
Save tankhuu/82e14b8dd78aea88067612929e5ac7b0 to your computer and use it in GitHub Desktop.
AWS Notes
# Situation
aws s3 cp --recursive . s3://bucket_name/
# Command run success but the exit code is 1
# Reason is because there are some upload failed, most of them failed cause the file is empty
`seek() takes 2 positional arguments but 3 were given`
==> This is because we are trying to upload an empty file and the awscli we are using is installed from ubuntu repository by
apt install awscli (https://github.com/aws/aws-cli/issues/2583)
# Solution
# Uninstall current awscli
apt remove awscli
# Reinstall it with pip3 (install pip3 if you didn't have `apt install -y python3-pip`
pip3 install awscli --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment