Missing lab IAM role (EC2LabRole) in AWS environment

Hello,

I am currently working in an AWS hands-on lab environment and trying to complete a Terraform-based setup involving Lambda

According to the lab instructions, there is a pre-created IAM role called EC2LabRole, which should support iam:PassRole permissions and be used for Lambda and/or EC2 instances.

However, I cannot find this role in the IAM console under Roles, and it is not available

Could you please share the name of the course and the lab?
It would help us a lot to identify the lab and assist you.

Yes, of cource
It’s “AWS SandBox Playground”

Yes, of cource
It’s “AWS SandBox Playground”

Which course is that lab in?

Don’t know wich course
Here is the url of playground: AWS

OK, now I get what you’re talking about. EC2LabRole does not exist unless you create it. But you are allowed by our security instructions for the playground to create a role with exactly that name; it’s one of several role or policy names you can create that we have “blessed” in this way. You still cannot assign any rights to the role that are not already allowed in the playground – you can’t “escalate” your privileges – but where you need a role name, that’s the name to give it. This is explained further in this FAQ.

1 Like