简体   繁体   English

AWS Boto3 Python脚本将文件上传到EC2

[英]Aws boto3 python script upload files to ec2

What is the syntax for uploading files to ec2 via boto3 and download them? 通过boto3将文件上传到ec2并下载它们的语法是什么? Tnx 特纳克斯

Look like you confuse something, ec2 is not a file storage. 似乎让您感到困惑,ec2不是文件存储。 If you talk about upload/download file on Amazon S3, you should refer to the Boto3 document, they have many examples for that! 如果您谈论有关Amazon S3上的上传/下载文件,则应参考Boto3文档,他们提供了许多示例!

Upload: https://boto3.readthedocs.io/en/latest/guide/s3-example-creating-buckets.html#upload-a-file-to-an-amazon-s3-bucket 上传: 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 下载: https : //boto3.readthedocs.io/en/latest/guide/s3-example-download-file.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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