How can I upload a file from my local system to AWS S3 bucket using EC2 Linux machine? How can I use aws s3 cp
command here?
I've tried aws s3 cp <fileName> s3://<BucketName>
, but the above command works if the file is in the linux machine.
CodePudding user response:
It sounds like 2 steps are required here.
- Transfer files from your local drive to the EC2 instance.
- You can transfer the files with something like SCP, S3 isn't in the picture here.
- Upload the files from EC2 to S3.
- You can use the cli here, similar to the command you already posted.
On which step are you stuck here exactly?