Aaron Zhang
Aaron Zhang

Reputation: 13

sync folder from ec2 to s3

I'm trying to synchronize a folder from a windows instance of EC2 to a S3 bucket. Although 'AWS Sync' command is a nice idea, but I want to host the command to somewhere else (like rundeck or there's some other place in ASW?) rather than on that EC2 instance. Is there some good way to do this? Thanks.

-Regards, Aaron

Upvotes: 1

Views: 1458

Answers (1)

Mark B
Mark B

Reputation: 200562

Nothing else will have access to the files on the EC2 server unless you explicitly setup some sort of file sharing thing, but then the question becomes less about AWS and more about some sort of Windows file sharing software. Nothing will be able to copy the files to S3 as fast as a command running directly on the EC2 server.

If you want to run an aws s3 sync command on the EC2 server, but trigger it from some process outside the server, you can look into the Run Command feature of the AWS Systems Manager.

If you want to run the synchronize task on a set schedule, then you could use Windows Task Scheduler on the server to trigger the aws s3 sync command.

Upvotes: 1

Related Questions