Name:
interface
Value:
Extend your Amplify Gen 2 app with AWS Blocks — self-contained backend capabilities you compose into your existing backend.

Page updated Mar 5, 2025

NewDeploy web apps with Git or your AI coding agent using the latest AWS Amplify. Add managed databases and authentication as you grow. Explore the documentation.
Maintenance ModeYou are viewing Amplify Gen 1 documentation. Amplify Gen 1 has entered maintenance mode and will reach end of life on May 1, 2027. For existing Gen 1 projects, a migration guide and tooling are available to help you upgrade.

Use existing AWS resources

These docs cover Amplify Gen 1. 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.

Existing Amazon API Gateway resources can be used with the Amplify Libraries by calling Amplify.configure() with the API Gateway API name and options. Note, you will need to supply the full resource configuration and library options objects when calling Amplify.configure(). The following example shows how to configure additional API Gateway resources to an existing Amplify application:

import { Amplify } from 'aws-amplify';
import { parseAmplifyConfig } from "aws-amplify/utils";
import amplifyconfig from './src/amplifyconfiguration.json';
const resourceConfig = parseAmplifyConfig(amplifyconfig);
// Add existing resource to the existing configuration.
Amplify.configure({
...resourceConfig,
API: {
...resourceConfig.API,
REST: {
...resourceConfig.API?.REST,
YourAPIName: {
endpoint:
'https://abcdefghij1234567890.execute-api.us-east-1.amazonaws.com/stageName',
region: 'us-east-1' // Optional
}
}
}
});
  • YourAPIName: Friendly name for the API
    • endpoint: The HTTPS endpoint of the API
    • region: AWS Region where the resources are provisioned. If not specified, the region will be inferred from the endpoint.

Note that before you can add an AWS resource to your application, the application must have the Amplify libraries installed. If you need to perform this step, see Install Amplify Libraries.