Configure Chef on AWS Linux Machine

Have you tried with other credentials with sudo access? I believe it won’t run without the sudo access.

Check below topic:
Chef Bootstrapping Node Error