How to Connect your instance when you lost .Pem file ?
Ohh, Have you lost your .Pem file ? If it is yes then you are in hurrry to get it fix.But don't worry, I have one quick fix for this thing. So follow below steps and get it fix effortlessly.
Step 1 : - Login into aws with your root user access. First you need to create one role of Ssm ( System manager ) . Go to IAM section and select create role ,select EC2 under use case section
- after typing ssm, select AmazonEC2RoleforSSM ,next give name for this role. Now you need name this role and create role.
Step 2 : - Next you need to attach Ec2 role to your instance(the one whose .Pem file was lost). And then select the Attach/Replace IAM role option under the Instance Setting option.
Step 3 : - Go to System Manager (By typing in search bar), then select Session Manager that is under the Instances and Nodes option. you can search instance here in many ways, then select the instance whose .Pem file was lost. and then start session.






That was very helpful sir😌
ReplyDelete