Connect to AWS resources
These docs cover Amplify Gen 2. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.
Amplify client libraries can be used independently without the Amplify backend workflow. If you have AWS resources provisioned with CDK, Terraform, CloudFormation, or the AWS Console, you can connect Amplify libraries directly to those resources.
This gives you the full power of Amplify's client APIs — authentication flows, data queries, file management, and more — while keeping complete control over your infrastructure.
You can configure the libraries in two ways:
- Manual
amplify_outputs.json— Create the configuration file with your resource details - Programmatic configuration — Build the configuration in code (ideal for testing and environment switching)
Both approaches support all Amplify services: Auth, Data, Storage, Analytics, Geo, and Notifications.
For the full guide with platform-specific code examples for each service, see Connect to existing AWS resources.