简体   繁体   中英

How do I write an api that uploads files from aws client machine to s3 bucket?

I am writing an api that does some operations on files in the s3 bucket but that file needs to be uploaded from from aws client machines from different regions to s3 bucket using some other api.

Prachi, I'm assuming that client machines are AWS EC2 Instances, these are the steps that you'll need to follow: "

  1. Create IAM Role with permissions to that specific S3 bucket.
  2. Attach IAM Role to EC2 to give client instances permission to interact with S3.
  3. Use AWS SDK on client machines to put the file to S3 Bucket. You can either use nodejs or python boto3 .

You should be able to get most of the things above on single google search.

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