Cannot create an IAM role in AWS playground lab (Cannot connect to EC2 instance via SSH)

Hi,

I am not able to create an IAM role in the AWS playground and it is showing the below error.

You need permissions
You do not have the permission required to perform this operation. Ask your administrator to add permissions.
User: arn:aws:iam::569641688456:user/KodeKloud-20842528 is not authorized to perform: iam:ListRoles on resource: arn:aws:iam::569641688456:role/

This issue is blocking me to access the instance I created …

Failed to describe instance information
User: arn:aws:iam::569641688456:user/KodeKloud-20842528 is not authorized to perform: ssm:DescribeInstanceInformation on resource: arn:aws:ssm:us-east-1:569641688456:* because no identity-based policy allows the ssm:DescribeInstanceInformation action

Does anyone manage to create a EC2 instance and connect via SSH?

Thanks,
Chance

Hello, @Chance
I will check and will update you on this.

1 Like

Hi @Tej-Singh-Rana ,

Thanks a lot for the reply! Actually, I just got an answer from Dinesh Pratap Singh who is in KodeKloud support team and I have no issue connecting to the instance now!

Merry Christmas!!

Chance

Note:
Here is the solution I have tried…

  1. Go to “VPC Dashboard”
  2. Click “Launch VPC Wizard” and follow the instruction to create a VPC/subnet
  3. Go to EC2 and launch an instance with “Auto-assign public IPv4 address” option Enable

Previously I created the VPC/subnet within the instance launch page and for some reason this didn’t work. The VPC wizard can help to create VPC/subnet in a proper way.

Thanks for your confirmation and feedback.
Merry Christmas!!