AWS CodeDeploy with CircleCI 2.0?

I used the awscli package (downloadable through pip) to run deployment via CodeDeploy.

  1. Set aws access key and secret access key (see this discussion).
  2. aws deploy push to push the revision to s3
  3. aws deploy create-deployment to create the deployment
  4. aws deploy get-deployment every 2 seconds to poll the deployment status