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
已提问 8 个月前595 查看次数
1 回答
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
专家
Steve_M
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则