how to upload files on ec2 instance code example
Example 1: aws ec2 upload file
scp -i ~/Downloads/file.pem local_image_file user:/home/user/images/
Example 2: aws ubuntu file upload
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa ubuntu-54-166-128-20.compute-1.amazonaws.com:~/data/