---
title: "How can I add my AWS AppSync schema to Apollo Federation?"
canonical: "https://support.apollographql.com/space/ETKB/646578203/How%20can%20I%20add%20my%20AWS%20AppSync%20schema%20to%20Apollo%20Federation%3F"
format: markdown
---
You can use an AWS AppSync API as a subgraph in a federated graph with the following steps:

**For a complete tutorial on integrating AppSync as part of an Apollo Federation architecture, see ****[this AWS blog post](https://aws.amazon.com/blogs/mobile/federation-appsync-subgraph/)****.**

## Expose your AppSync API's schema to the gateway

A GraphQL service is aggregated by an Apollo federation gateway by providing its subgraph schema definition, with third party servers, a query called `_service`, returning an extended GraphQL Schema Definition Language (SDL) response is required.

## Define and extend entities

If any of your AppSync schema's object types are entities, you need to apply the `@key` directive to them (as with any other subgraph library). [Learn More](https://www.apollographql.com/docs/federation/entities).

## Publish the subgraph schema with the Rover CLI

After you modify and deploy your AppSync schema, you can publish that schema to Apollo Studio with the [Rover CLI tool](https://www.apollographql.com/docs/rover/subgraphs#publishing-a-subgraph-schema-to-apollo-studio)

Click for a complete list of subgraph compatible server libraries

For a complete list of subgraph-compatible server libraries, see [this article](https://www.apollographql.com/docs/federation/other-servers).