use the dev branch when building.
updated template to give instance profile rights to run opsworks commands
check to make sure instance id isn't null