When I try to start the lab again and set up the Cloud9 environment, I am getting an error of:
There was an error creating the IAM resources needed for SSM connection.
You don’t have the permission required to perform this operation. Ask your administrator to give you permissions.
User: _____________ is not authorized to perform: iam:CreateRole on resource: ___________AWSCloud9SSMAccessRole because no identity-based policy allows the iam:CreateRole action
How do i fix this? I’ve tried signing out of the console and hitting Start Lab in the Vocareum again, but to no avail.
I don’t know what the problem was, but it has somehow been solved.
Other things that didn’t work:
Logging out of AWS and then shutting down the browser, and then trying to start over.
What ended up working was to wait out the entire 2 hours, exit out of all the lab windows, close down the browser, and then start over. I have no idea why.
That’s great that you were able to solve the issue on your own AWS networking can be tricky. I believe the issue was that when creating the Cloud9 environment, you might have selected SSM rather than the correct SSH:
For future labs, just make sure to double check that all Cloud9 configurations match what’s indicated in the instructions so that you don’t run into this error again.