Create a file in aws instance and push it to S3 bucket:

Image description
Image description

Open Putty and in connection->ssh->auth->credentials browse the location of pem.ppk file

copy the public ipv4 address and paste it in putty host name and click open