GitPedia

Graphql compose aws

AWS Cloud API via GraphQL

From graphql-compose·Updated September 15, 2025·View on GitHub·

- **Live demo of [AWS SDK API via GraphiQL](https://graphql-compose.herokuapp.com/aws/?query=%0A%0A%23%20%E2%9C%8B%20%F0%9F%9B%91%20Please%20provide%20you%20credentials%20for%20obtaining%20working%20demo.%0A%23%20%E2%9C%8B%20%F0%9F%9B%91%20You%20need%20to%20wait%20about%2030%20seconds%2C%20before%20documentation%20and%0A%23%20autocompletion%20became%20avaliable.%20Needs%20to%20download%20about%0A%23%209MB%20schema%20introspection.%20Free%20Heroku%20account%20is%20not%20so%20fast%2C%20sorry.%0A%0... The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2017. Key topics include: amazon-api, amazon-web-services, api-proxy, aws-sdk, graphql.

Latest release: v5.3.0
September 14, 2022View Changelog →

graphql-compose-aws

npm
trends
Travis
Commitizen friendly
semantic-release
Greenkeeper badge

This module expose AWS Cloud API via GraphQL.

Generated Schema Introspection in SDL format can be found here (more than 10k types, ~2MB).

AWS SDK GraphQL

Supported all AWS SDK versions via official aws-sdk js client. Internally it generates Types and FieldConfigs from AWS SDK configs. You may put this generated types to any GraphQL Schema.

js
import { GraphQLSchema, GraphQLObjectType } from 'graphql'; import awsSDK from 'aws-sdk'; import { AwsApiParser } from 'graphql-compose-aws'; const awsApiParser = new AwsApiParser({ awsSDK, }); const schema = new GraphQLSchema({ query: new GraphQLObjectType({ name: 'Query', fields: { // Full API aws: awsApiParser.getFieldConfig(), // Partial API with desired services s3: awsApiParser.getService('s3').getFieldConfig(), ec2: awsApiParser.getService('ec2').getFieldConfig(), }, }), }); export default schema;

Full code examples

Installation

bash
yarn add graphql graphql-compose aws-sdk graphql-compose-aws // or npm install graphql graphql-compose aws-sdk graphql-compose-aws --save

Modules graphql, graphql-compose, aws-sdk are in peerDependencies, so should be installed explicitly in your app.

Screenshots

Get List of EC2 instances from eu-west-1 region

<img width="1185" alt="screen shot 2017-12-03 at 18 19 28" src="https://user-images.githubusercontent.com/1946920/33525931-c7092c7a-d862-11e7-947b-70380693cc8b.png">

Several AWS API calls in one query with different services and regions

<img width="1184" alt="screen shot 2017-12-03 at 18 07 50" src="https://user-images.githubusercontent.com/1946920/33525932-c8507656-d862-11e7-9e66-4deb27b8f996.png">

License

MIT

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from graphql-compose/graphql-compose-aws via the GitHub API.Last fetched: 6/24/2026