Posted On: Nov 16, 2021

Today, AWS Amplify announces a new “amplify add custom” command to add any of the 175+ AWS services to an Amplify-created backend using the AWS Cloud Development Kit (CDK) or AWS CloudFormation. The AWS Amplify CLI is a command line toolchain that helps frontend developers create app backends in the cloud. The new ability to add custom resources enables developers to add additional resources beyond Amplify’s built-in use cases with a single command.

To add custom AWS resources, developers can run "amplify add custom" in their Amplify project. This command provides CDK or CloudFormation starter files. For example, developers can create an SNS topic using "amplify add custom" to send SMS or emails notifications to their customers. To reference Amplify-generated resources from the newly added custom AWS resources, developers can use the provided "amplifyParams" parameter in CDK or use the "Parameters" object in CloudFormation.

Learn more about how to setup Amplify CLI’s custom AWS resources feature in our blog post or in the Amplify documentation.