AWS Amplify’s extensibility features give developers the flexibility to customize their AWS backend and deployment capabilities. Reconfigure Amplify-generated backend resources to optimize for specific use cases, or modify Amplify's deployment operations to comply with your enterprise DevOps guidelines as your needs evolve.
Features
Override generated resources
Modify fine-grained backend resource settings and override via CDK. Amplify does the heavy lifting for you. For example, use Amplify to add new Cognito resources with default settings to your backend. Override just the settings you want with 'amplify override auth'.
Custom AWS resources
The Amplify CLI provides the ability to add custom AWS resources with CDK or CloudFormation. Running the 'amplify add custom' command in your Amplify project provides CDK or CloudFormation placeholders along with mechanisms to reference other Amplify-generated resources.
Access AWS resources
Add business logic to your backend using Amplify functions and containers and allow them to access existing AWS resources. For example, grant functions access to an SNS topic to send an SMS or allow your container to access an existing database.
Import AWS resources
Integrate your existing resources, such as Amazon Cognito user pool and federated identities (identity pool), or Storage resources like DynamoDB + S3, into an Amplify project. For example, use your existing Cognito resources as an authentication mechanism for your GraphQL API, Storage (S3), and more.
Command hooks
Use Command Hooks to run custom scripts before, during, and after Amplify CLI commands ('amplify push', 'amplify api gql-compile', and more). Trigger validation checks, run credential scans, or clean-up build artifacts during deployment. Extend Amplify’s best-practice defaults to meet your security guidelines and operational requirements.
Export Infrastructure-as-Code
Use Amplify with existing DevOps tools or integrate into your in-house deployment systems. Amplify’s export feature lets you export your Amplify project to your preferred tooling using CDK. Export Amplify CLI build artifacts, including CloudFormation templates, API resolver code, and client-side code generation.
Add any AWS resource to your AWS Amplify CLI project with CDK.
Use Amplify with your existing DevOps tools or in-house deployment systems.
Build an extensible, full-stack web or mobile app with AWS Amplify.