0% found this document useful (0 votes)
3 views3 pages

Creating An EC2

This document provides a step-by-step guide to creating an EC2 instance on AWS, starting from signing in to the AWS Management Console to accessing and managing the instance. Key steps include selecting an Amazon Machine Image (AMI), configuring instance details, setting up storage and security groups, and launching the instance with a key pair. Additional tips for monitoring, backup, and scaling are also included.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Creating An EC2

This document provides a step-by-step guide to creating an EC2 instance on AWS, starting from signing in to the AWS Management Console to accessing and managing the instance. Key steps include selecting an Amazon Machine Image (AMI), configuring instance details, setting up storage and security groups, and launching the instance with a key pair. Additional tips for monitoring, backup, and scaling are also included.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Steps to create ec2

Creating an EC2 (Elastic Compute Cloud) instance on AWS involves several steps. Here’s a detailed
guide to get you started:

### 1. **Sign In to AWS Management Console**

- Go to the [AWS Management Console](https://aws.amazon.com/console/).

- Sign in with your AWS credentials.

### 2. **Navigate to EC2 Dashboard**

- From the AWS Management Console, search for “EC2” in the search bar or select it from the
Services menu.

### 3. **Launch Instance**

- Click the “Launch Instance” button on the EC2 dashboard.

### 4. **Choose an Amazon Machine Image (AMI)**

- Select an AMI that suits your needs. AMIs are pre-configured with an operating system and often
additional software.

- AWS provides various AMIs, including standard ones like Amazon Linux, Ubuntu, and Windows, as
well as marketplace options.

### 5. **Choose an Instance Type**

- Choose an instance type based on the required CPU, memory, and network performance. You can
start with a general-purpose type like t2.micro (which is eligible for the free tier) if you're testing or
learning.

### 6. **Configure Instance Details**

- Configure the instance settings:

- **Number of instances**: Set how many instances you want to launch.

- **Network and Subnet**: Choose the VPC (Virtual Private Cloud) and subnet. If you’re unsure,
the default VPC and subnet should work.

- **IAM role**: Attach an IAM role if your instance needs permissions to access other AWS
resources.

- **Shutdown behavior**: Choose between stopping or terminating the instance upon shutdown.

- **Enable termination protection**: Protect your instance from being terminated accidentally.
Steps to create ec2

### 7. **Add Storage**

- Configure the storage volumes attached to your instance. The default is usually an EBS (Elastic
Block Store) volume.

- You can add additional volumes or adjust size as needed.

### 8. **Add Tags**

- Tags are key-value pairs that help identify and manage your instances.

- For example, you might add a tag with the key `Name` and a value like `MyFirstInstance`.

### 9. **Configure Security Group**

- Create a new security group or select an existing one. Security groups act as a virtual firewall to
control inbound and outbound traffic.

- Add rules to allow the necessary inbound traffic, such as SSH (port 22) for Linux instances or RDP
(port 3389) for Windows instances.

### 10. **Review and Launch**

- Review your instance configuration.

- Click “Launch” when you’re ready.

### 11. **Select or Create a Key Pair**

- Choose an existing key pair or create a new one. The key pair is used to securely connect to your
instance.

- Download the key pair file (.pem) and keep it safe, as it’s needed for SSH access.

### 12. **Access Your Instance**

- Once the instance state shows “running,” you can connect to it:

- **Linux/Unix Instance**: Use SSH from your terminal.

```bash

ssh -i /path/to/your-key.pem ec2-user@your-instance-public-dns

```

- **Windows Instance**: Use RDP (Remote Desktop Protocol). You’ll need the instance’s public IP
and a password retrieved using the key pair.
Steps to create ec2

### 13. **Manage Your Instance**

- You can manage your instance from the EC2 dashboard, where you can start, stop, terminate, or
modify instance settings.

### Additional Tips:

- **Monitoring**: Set up CloudWatch alarms to monitor your instance’s health and performance.

- **Backup**: Consider setting up automated backups using snapshots.

- **Scaling**: Explore Auto Scaling Groups if you need to manage multiple instances based on
demand.

Feel free to reach out if you have specific questions about any of these steps!

You might also like