Example using Chef’s knife command to run chef-client on all instances using the dev_identity.pem.

knife ssh "role:*" "chef-client" -i ~/.ec2/dev_identity.pem