AWS CLI Don't have sufficient permissions error

Not able to use AWS CLI in lab environment

That’s not what the error says, actually. It says you can’t use the AWS AI feature to diagnose a console error, which is something else entirely. What error were you trying to figure out?

Check what error I am trying to diagnose . User not authorised to perform cloudshell. Check the error that amazon Q Trying to diagnose