Skip to main content

Resource

A cloud credential, database connection string, network configuration, or other infrastructure output produced by (or imported into) Massdriver.

Resources are the connective tissue between instances. When an instance is deployed, it produces resources as outputs. Other instances can consume those resources as inputs, creating a dependency graph of your infrastructure.

Resources have two origins:

  • Imported — created directly through the API (e.g., uploading existing AWS credentials). You have full CRUD control over these resources.
  • Provisioned — created automatically when an instance is deployed. These are read-only and managed entirely by the owning instance's lifecycle.
type Resource {
id: ID!
name: String!
type: String
origin: ResourceOrigin!
resourceType: ResourceType
createdAt: DateTime!
updatedAt: DateTime!
}

Fields

Resource.id ● ID! non-null scalar {#id}

Unique identifier for this resource.

Resource.name ● String! non-null scalar {#name}

Human-readable display name for this resource.

Resource.type ● String scalar {#type}

The resource type identifier (e.g., aws-iam-role).

Deprecated: Use resourceType { id } instead for a richer representation that includes the resource type's name and schema.

Resource.origin ● ResourceOrigin! non-null enum {#origin}

How this resource was created. Determines whether it can be modified through the API.

Resource.resourceType ● ResourceType object {#resource-type}

The resource type that this resource conforms to, defining its schema and validation rules.

Resource.createdAt ● DateTime! non-null scalar {#created-at}

When this resource was created (UTC).

Resource.updatedAt ● DateTime! non-null scalar {#updated-at}

When this resource was last modified (UTC).

Returned By

resource query

Member Of

InstanceDependency object ● InstanceResource object ● RemoteReference object ● ResourcePayload object ● ResourcesPage object