DEV Community

Sharvesh Waran
Sharvesh Waran

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.

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.

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

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

Image description

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs