'how to kill long running aws s3 cli command
i have a long running aws s3 cp command
aws s3 cp folder1/ s3://bucket/ --recursive
can this command be terminated gracefully
can we pass TIMEOUT
aws --TIMEOUT 1800 s3 cp ..
Solution 1:[1]
for automation i was able to put a timeout like below
/usr/bin/timeout -s 1800 /usr/bin/aws s3 cp folder1/ s3://bucket/ --recursive
Solution 2:[2]
No, there isn't an option to terminate gracefully.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | supersrin |
Solution 2 | Ermiya Eskandary |