Skip to main content
Version: v3.x beta

Build Manifests

Introduction

Build manifests are used to define the configuration for building your supergraph or a connector. Written in YAML, these manifests are used to define the resources and other configurations required to build a supergraph or a connector.

It's helpful to think of build manifests as a blueprint for building a supergraph or a connector.

Supergraph manifests

The supergraph manifest defines the configuration used to build the supergraph. While projects are generated with a default manifest, you can add as many SupergraphManifests as you need to define different configurations for building your supergraph.

Connector manifests

Each connector in your supergraph has its own manifest. The ConnectorManifest defines the configuration used to build the connector. This allows you to configure the capabilities of the connector and tailor it to your needs.

Use the CLI to generate manifests

A connector manifest can easily be generated using the CLI's add connector-manifest command.

Metadata structure

SupergraphManifest

Details of how to build the Supergraph.

KeyValueRequiredDescription
kindSupergraphManifesttrue
versionv1true
definitionSupergraphManifestDefinitiontrueDetails of how to build the Supergraph.

SupergraphManifestDefinition

Details of how to build the Supergraph.

KeyValueRequiredDescription
namestringtrueName of the supergraph manifest.
envfilestringfalsePath to the YAML file containing environment variables.

ConnectorManifest

Defines the configuration used to build the connector.

KeyValueRequiredDescription
kindConnectorManifesttrue
versionv1true
specConnectorManifestSpecfalseConnector Manifest Spec
definitionConnectorManifestDefinitiontrueConnector Manifest Definition

ConnectorManifestDefinition

Defines the configuration used to build a connector.

One of the following values:

ValueDescription
CloudConnectorManifestDefinition
EndpointConnectorManifestDefinition

EndpointConnectorManifestDefinition

Defines the configuration used to build a local connector.

KeyValueRequiredDescription
namestringtrueName of the connector.
typeendpointstrueDeployment type of the connector.
deployments[EndpointDeployment]trueDetails about the connector endpoint.

EndpointDeployment

Details about the connector endpoint.

KeyValueRequiredDescription
endpointValueOrFromEnvtrueEndpoint of the connector.

CloudConnectorManifestDefinition

Defines the configuration used to build a cloud connector.

KeyValueRequiredDescription
namestringtrueName of the connector.
typecloudtrueDeployment type of the connector.
connectorConnectorTypetrueType of connector.
deployments[CloudDeploymentKind]trueDetails about the cloud deployments for the connector.

CloudDeploymentKind

Kind for cloud deployment.

One of the following values:

ValueDescription
CloudDeployment
CloudRegionDeployment

CloudRegionDeployment

Details about the regional cloud deployments for the connector.

KeyValueRequiredDescription
regionCloudDeploymentRegionstrueRegion of the connector build
modeCloudDeploymentModetrueConnector build deployment mode
contextstringtruePath of the connector context directory.
envEnvstrueEnvironment variables for the connector build.

CloudDeploymentMode

Specifies mode for the cloud connector deployment.

Value: ReadWrite / ReadOnly

CloudDeploymentRegions

Specifies region for the cloud connector deployment.

Value: gcp-asia-northeast1 / gcp-asia-south1 / gcp-asia-southeast1 / gcp-australia-southeast1 / gcp-europe-west1 / gcp-europe-west3 / gcp-southamerica-east1 / gcp-us-central1 / gcp-us-east4 / gcp-us-west1 / gcp-us-west2

CloudDeployment

Details about the cloud deployments for the connector.

KeyValueRequiredDescription
contextstringtruePath of the connector context directory.
envEnvstrueEnvironment variables for the connector build.

Envs

Environment variables for the connector deployment.

KeyValueRequiredDescription
<customKey>ValueOrFromEnvfalse

ValueOrFromEnv

Specifies an explicit value for the Env var or loads it from provided Env vars to the command.

One of the following values:

ValueDescription
EnvValue
EnvValueFromEnv

EnvValueFromEnv

Load Env var value from the provided Env vars to the command.

KeyValueRequiredDescription
valueFromEnvstringtrue

EnvValue

Explicit value of an Env var.

KeyValueRequiredDescription
valuestringtrue

ConnectorType

Connector Type information.

KeyValueRequiredDescription
typehub / inlinetrueType of connector.
namestringfalseHub connector ID (Name and version)

ConnectorManifestSpec

Connector Manifest Spec

KeyValueRequiredDescription
supergraphManifests[string]trueList of SupergraphManifests this ConnectorManifest is a part of.
Loading...