With the help of the AWS CloudFormation Custom Resources diagram, you can create templates that AWS CloudFormation runs whenever you create, update (if you changed the custom resource), or delete stacks, allowing you to write custom provisioning logic. The AWS CloudFormation resource types may not cover everything you need. You can use custom resources to add in the aforementioned materials. As a result, you can continue to handle all relevant assets in a single stack. A service token and any data input parameters are part of a custom resource that is defined by the template developer. The input data may be necessary depending on the custom resource, but the service token is always needed.