2016-07-08 121 views
0

SSH有a useful opt-in feature,使您可以重用調用之間的連接:您能否在`aws s3` CLI的調用之間保持連接打開?

ssh host 'echo example' # this opens the connection to host, and leaves it open 
ssh host 'echo example2' # this reuses the connection from the previous command 

是否有AWS的S3命令行界面相似的地方?例如:

aws s3 mv s3://bucketname/example1 s3://bucketname/example2 
aws s3 mv s3://bucketname/example3 s3://bucketname/example4 

這將是巨大的,如果第一個命令將打開一個連接,並使其保持開放第二利用它的優勢。當運行大量小命令時,這將極大地加速AWS S3 CLI。

回答

1

你不能。您可以直接使用boto3,Python SDK或實際上任何支持的語言的SDK。它可以讓你堅持連接,但CLI不支持這種事情。

+0

正確。它是Python SDK。不過,您可以使用任何SDK。 –