Circle CI AWS Integration

I was wondering if the following scenario would be possible on Circle CI . I have a build that requires a lot of CPU and RAM ( 4-8 cores, 8 GB RAM ). I run an instance on AWS to do the builds manually. Is there anyway for Circle CI to do the following sequence :

  1. Circle CI picks up change in git repo
  2. Circle CI starts the AWS instance
  3. Circle CI ssh’s into the AWS instance to run the build
  4. Circle CI shuts down the AWS instance ( not destroys it )
    I could probably use the aws command line tools and some bash scripting, but I was wondering if this kind of thing has ever been done with Circle CI, I would love to have build artifacts and logs as well as success / failure integrated with that workflow.