DEV Community

ᗪᴇᴇᴘᴀᴋ
ᗪᴇᴇᴘᴀᴋ

Posted on

EC2 - S3 - Putty

STEP 1: Create an Instance on Amazon Linux.
Image description

STEP 2: Now we want to download Putty from https://www.putty.org/ based on our windows architecture.
Image description

STEP 3: Then go to security group -> edit bound rules, in that security group type will be SSH because we are using putty and ip will be your ip and save rules.
Image description

Image description

STEP 4: Next open putty,in that paste your public ip(which is in your instance) in the host name.
Image description

STEP 5: On the left side, you can see connection -> SSH -> Auth -> Credentials.After that you want select the private key file. After select your .ppk file click open button.
Image description

STEP 6: Then the terminal will open after click the open button.In that login as ec2-user.
Image description

STEP 7: Now we run the command 'aws s3 ls'.If it shows errors,then we want create a IAM role.
Image description

STEP 8: Create a IAM role and give 'AmazonS3fullaccess' permission and create role.
Image description

Image description

Image description

STEP 9: Now go to ec2->actions->security->modify IAM role and add our newly created IAM role.
Image description

STEP 10: Run the same command,now you can see the buckets present in S3.Now create a detail.txt file move it to a random bucket without using S3 UI.There is a command,which can do this.
Image description

STEP 11: Now check our bucket for the uploaded file(detail.txt) is present.
Image description

Step 12: Atlast delete your instance,IAM role.
Image description

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)