Shell script to Upload files from AWS EC2 to S3

Question:

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 ?

Answer:

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

Leave a Reply