DEV Community

Harinivas. M
Harinivas. M

Posted on

1

Copying a file from Ec2 to S3 using PuTTy software

1.Download Putty software with proper version
Image description

2.Install the Putty software
Image description

3.Create a EC2 instances
Update the security group inbound rules.
Image description

4.Using puTTygen
key pair to convert .perm file to .ppk file

5. Create a S3 bucket

6. connect to PuTTy software and create a file called details.txt print the content in echo "helloworld" in details.txt.

Image description

7. Create roles in IAM and change the IAM role in instances, then the go to PuTTy and type aws s3 ls, it will show the S3 buckets.

Image description

8. We need to add previous details.txt file to s3 .so, we use aws s3 cp details.txt s3://(bucket name)/

Image description
9.Go and verify it, In s3 files is uploaded finally.

Image description

10. Cost Management
More amount of cost will be used at the time of roles and instances, so we can delete the created things.

Image description

Flowchart Diagram :

Image description

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more