If you are new to both AWS and Cloud Custodian, this tutorial from the AWS Open Source Blog is a great place to start.