Creating a CloudFormation Custom Resource

CloudFormation is an extremely powerful service provided by AWS to simplify the provisioning of your resources and do so in a manner where you can deploy those same resources in a repeatable fashion. For example, if you need to deploy the same set of resources in multiple regions, instead of performing the same series of tasks in the AWS Console, spending the time creating CloudFormation templates can reduce errors and reduce the deployment time later.

However, as powerful as CloudFormation is, there are some things it cannot do well. For example, some…