Shell script to Upload files from AWS EC2 to S3

13,506

Consider using command line s3 clients.

S3 command line tools

Also go through some of these sites :

Shell Script To Transfer Files From Amazon S3 Bucket.

aws command line tools

python script to upload file to s3

Share:
13,506
Pravin
Author by

Pravin

Updated on June 24, 2022

Comments

  • Pravin
    Pravin almost 2 years

    I am executing jmeter on AWS EC2, result of which is returned in the form csv file.

    I need to upload this csv file to AWS S3 bucket.

    Since I am creating number of EC2 instances dynamically and executing jmeter on those instances, it's better to automate this process .

    So for this I want to write shell script (as a user data) to execute jmeter and upload result CSV file to S3 bucket from each EC2 instance.

    How i can write script for this ?