Adding Keypair to existing EC2 instance

0 votes

I have two instances running which I cannot shutdown. I am currently unable to establish a secured shell connection to these instances. The reason is I do not have Pem file or the key pair that is required. Can I create a new Key Pair to create a connection with the existing instances.

If this isn't possible is there some other way I can get into the instances?

Apr 8, 2018 in AWS by hemant
• 5,750 points
54 views

1 answer to this question.

0 votes

No you can't. The reason is KeyPair associated to an instance cannot be replicated or replaced. It is a one time thing.

There is an outside chance of recovery, if it's an EBS boot AMI, here you can stop it and then take a snapshot of the volume. And then create a new volume from it. And be able to use it back to start the old instance, create a new image, or recover data.

This comes with risk of losing your data at ephemeral storage

answered Apr 8, 2018 by code_ninja
• 6,220 points

Related Questions In AWS

+2 votes
2 answers

Is it possible to ping AWS EC2 instance

Start by adding a new EC2 security group inbound ...READ MORE

answered Apr 9, 2018 in AWS by hemant
• 5,750 points
638 views
0 votes
3 answers
0 votes
2 answers
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
261 views
0 votes
1 answer
0 votes
1 answer

S3 Static Website Hosting Route All Paths to Index.html

Yes there is an easy way to ...READ MORE

answered Apr 8, 2018 in AWS by code_ninja
• 6,220 points
658 views