Shell script to download files from AWS EC2 to S3

I am running jmeter on AWS EC2, the result of which is returned as a csv file.

I need to load this csv file into an AWS S3 bucket.

Since I am creating the number of EC2 instances dynamically and running jmeter on these instances, it is better to automate this process.

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

How can I write a script for this?

+6
source share

All Articles