I used the awscli package (downloadable through pip) to run deployment via CodeDeploy.
- Set aws access key and secret access key (see this discussion).
-
aws deploy push
to push the revision to s3 -
aws deploy create-deployment
to create the deployment -
aws deploy get-deployment
every 2 seconds to poll the deployment status