Deploying shell script using AWS

Does anyone know how to create shell scripts or is it possible to make your own and deploy with AWS (it could be with AWS cloud information) server templates which is an automated server provisioning (may be using centos, Ubuntu or Red Hat Linux OS server Templates) that can be done with right scale using AWS?
