AWS

AWS Cheat Sheet

Copy File from EC2 to S3

To copy a file from your EC2 instance to an S3 bucket, use the AWS CLI:

aws s3 cp /path/to/local/file s3://your-bucket-name/path/in/bucket/

Replace /path/to/local/file with your file’s path and your-bucket-name/path/in/bucket/ with your S3 bucket and desired path.