How to Launch EC2 instances in the different region using the same key pair on AWS
To Launch EC2 instances in different region using a same key pair on AWS
Introduction:
Amazon Web Services is a subsidiary of Amazon rendering on-demand cloud computing platforms and application programming interfaces to selves, organizations, and governments, on a metered pay-as-you-go basis. Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides reliable, resizable measuring capacity in the cloud that is designed to create web-scale cloud computing more convenient for the developers. It renders total control of computing resources that can run on Amazon's proven computing environment. This tutorial will show you to Launch EC2 instances in different regions using the same key pair on AWS.
Procedure:
switch your AWS console and login your account Now I will create a VPC. I have already posted a video for VPC and EC2 creation if you have any doubt about VPC and EC2 instance creation please refer that video
VPC creation Video: https://www.youtube.com/watch?v=tffhGE48e4o&t=115s
EC2 instance Video: https://www.youtube.com/watch?v=s9traU-3fQI&t=15s
The VPC is created Now create a subnet for that VPC. Finally, the subnet is created By default, while you are creating a subnet the route table also create along with the VPC creation. Here I will change the name of route table Now create Internet Gateway for that VPC then attach the Internet Gateway to the VPC Now define a policy for internet gateway Now create EC2 instance using the VPC Then the same way follow to create VPC, Internet Gateway Instance to another Region We need Public key or create an instance to import the key pair to another region. For that go to Mumbai region and launch instance and type the below command Here you can see than public key copies the entire key and go to key pair window on another region and create a key pair name and paste the key to the text box then click Import key pair Then create instance using the key pair. Now the instance is created and then launch the instance Finally, launch the instance using the different region Key pair With this method, to create a Launch EC2 instances in different region using a same key pair on AWS comes to an end.
Comments ( 0 )
No comments available