简体   繁体   中英

Aws boto3 python script upload files to ec2

What is the syntax for uploading files to ec2 via boto3 and download them? Tnx

Look like you confuse something, ec2 is not a file storage. If you talk about upload/download file on Amazon S3, you should refer to the Boto3 document, they have many examples for that!

Upload: https://boto3.readthedocs.io/en/latest/guide/s3-example-creating-buckets.html#upload-a-file-to-an-amazon-s3-bucket

Download: https://boto3.readthedocs.io/en/latest/guide/s3-example-download-file.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM