1. Introduction to AWS EC2 and S3 Integration
AWS (Amazon Web Services) offers a wide range of cloud solutions, with EC2 being a popular service for scalable computing capacity. This guide walks you through launching an EC2 instance, connecting it via SSH using PuTTY, integrating with an S3 bucket, and cleaning up resources.
2. Creating an EC2 Instance
Step 2.1: Choose Amazon Linux as the AMI
- Log in to your AWS Management Console.
- Navigate to the EC2 Dashboard and click Launch Instance.
- Select Amazon Linux as your Amazon Machine Image (AMI).
Step 3.2: Edit Security Group Inbound Rules
- Ensure that the SSH port is open to your local machine’s IP.
Step 3.3: Convert Key Pair Using PuTTYgen
- Use PuTTYgen to convert the .pem file to a .ppk file for use with PuTTY.
Step 3.4: Connect Using PuTTY
- Open PuTTY and enter the Public IPv4 address of your EC2 instance in the Host Name field.
- Navigate to Connection > SSH > Auth and upload the .ppk file.
- Click Open to connect to your EC2 instance as the ec2-user.
Step 4.2: Attach the Role to the EC2 Instance
- Navigate to the EC2 Dashboard, select your instance, and choose
Actions > Security > Modify IAM Role. - Attach the newly created role to the instance.
Step 5.2: Upload a File
- SSH into your EC2 instance.
Use the AWS CLI to upload a file to the S3 bucket:
CODE- aws s3 cp <local-file-path> s3://<your-bucket-name>/
Step 6.3: Remove S3 Bucket (Optional)
- Delete the S3 bucket if you no longer need it.

SOCIAL SHARE CARD GENERATOR