EC2 Instance Key Pair Change

0

We have Ec2 instance which is connected to Elastic Beanstalk. The instance has an Auto Scaling group connected which has a Launch Configuration setup. Now we do not have access to the existing keypair of the instance, hence we are trying to change the keypair for the instance. To achieve this we have created a new launch configuration with a new keypair and connected that launch configuration to the existing Auto Scaling group. But the changed keypair is not reflecting on the instance. That is where we are stuck with and we need a way to change this key par so that we can access the instance.

Dipen
asked 7 months ago582 views
1 Answer
1

That method will not change the keypair on an instance that has already been provisioned and is running. See option 1 of this instead https://repost.aws/knowledge-center/user-data-replace-key-pair-ec2

profile picture
EXPERT
Steve_M
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions