Monday, 3 June 2024

How we can Launch EC2 Instance in AWS

 Hello Folks,  Here's a step-by-step outline of how you can launch an EC2 instance through the AWS Management Console:


1. Sign in to the AWS Management Console: Go to the AWS Management Console at https://aws.amazon.com/ and sign in with your AWS account credentials.

Note : For practice purpose you can use free aws account and Don't forgot to terminate the instance after otherwise you will get bill from AWS because only 750hrs free from AWS free account.


2. Navigate to EC2 Dashboard: Once logged in, you'll land on the AWS Management Console dashboard. Find and click on "EC2" under the "Compute" section, or you can search for "EC2" in the AWS services search box.


3. Launch Instance: In the EC2 Dashboard, click on the "Instances" link on the left-hand side to go to the Instances view. Then, click on the "Launch Instance" button to start the instance creation process.


4. Choose an Amazon Machine Image (AMI):

   - In the "Step 1: Choose an Amazon Machine Image (AMI)" section, you'll see a list of AMIs categorized by AWS-provided AMIs, AWS Marketplace, and My AMIs (your custom AMIs if any). Select an AMI based on your operating system and application requirements. Click the "Select" button.

We have Ubuntu, CentOS, RHEL, AMAZON -LINUX AMI images available in aws.


5. Choose an Instance Type:

   - In the "Step 2: Choose an Instance Type" section, you can select the instance type that best suits your workload needs. Instance types vary in CPU, memory, storage, and network capacity. Once selected, click "Next: Configure Instance Details".


Note : Please select t2.micro instance type if you guys are using aws free account because it's free.

Only 750hrs that means your instance will be in running state upto 13days max.


6. Configure Instance Details:

   - In the "Step 3: Configure Instance Details" section, you can configure advanced settings such as network settings (VPC, subnet, IP addressing), IAM role (if any), and more. Adjust settings as needed and click "Next: Add Storage".

Note : Please select exact VPC and subnet you want to launch instance otherwise it will launch in default vpc provided by AWS.

7. Add Storage:

   - In the "Step 4: Add Storage" section, you can configure the storage volumes attached to your instance. By default, EC2 instances come with a root EBS volume. You can add additional volumes or adjust the size and type of existing volumes. Click "Next: Add Tags" when done.


8. Add Tags (Optional):

   - In the "Step 5: Add Tags" section, you can optionally add tags to your instance. Tags are key-value pairs that help you organize and manage your AWS resources. Click "Next: Configure Security Group".


9. Configure Security Group:

   - In the "Step 6: Configure Security Group" section, you define firewall rules that control inbound and outbound traffic to your instance. You can create a new security group or select an existing one. Click "Review and Launch" when ready.

Note : If you want to connect your launched instance through SSH then you should allow 22 port number in SECURITY GROUP.

10. Review Instance Launch:

    - In the "Step 7: Review Instance Launch" section, review all the configuration details of your instance. Make sure everything looks correct before proceeding.


11. Launch Instance:

    - Click the "Launch" button to launch your EC2 instance. A dialog box will prompt you to select an existing key pair or create a new one. Key pairs are used for secure SSH access to Linux instances or RDP access to Windows instances. Select your preferred option and click "Launch Instances".


12. View Instances:

    - After launching, you'll be redirected to the Instances view where you can see your new instance initializing. Once the instance state transitions from "pending" to "running", you can connect to your instance using SSH (Linux) or RDP (Windows) and start using it.


Please note , Don't forgot to terminate once yours work done because to avoid unnecessary billing from AWS.

That's it! You have successfully launched an EC2 instance through the AWS Management Console. Make sure to monitor your instance and manage it according to your application requirements.


I hope you guys understood how we can launch instance through console.


That's it for the day.. Thanks for reading, Yours friend VK😊

No comments:

Post a Comment

Introduction to k8s

 Hello friends, Good Day! Hope you guys are doing well, I am writing here some basic terminology n introduction to kube8.. please do read n ...