Created
May 6, 2020 03:32
-
-
Save tankhuu/82e14b8dd78aea88067612929e5ac7b0 to your computer and use it in GitHub Desktop.
AWS Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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