Encore Infrastructure API

Encore's Infrastructure from Code API lets developers declare cloud infrastructure resources — PostgreSQL databases, Pub/Sub topics and subscriptions, object storage buckets, cron jobs, caches, and secrets — as typed code primitives inside their backend. Encore parses these declarations to provision matching infrastructure locally (Docker-free) for development and on AWS or GCP in production via Encore Cloud, without Terraform, YAML, or manual wiring.

API entry from apis.yml

apis.yml Raw ↑
aid: encore-dev:encore-infrastructure-api
name: Encore Infrastructure API
tags:
- Backend
- Infrastructure
- Databases
- PubSub
- Caching
- ObjectStorage
- Cron
- Secrets
humanURL: https://encore.dev/docs/ts/primitives
properties:
- url: https://encore.dev/docs/ts/primitives
  type: Documentation
- url: https://encore.dev/docs/ts/primitives/databases
  type: Documentation
- url: https://encore.dev/docs/ts/primitives/pubsub
  type: Documentation
- url: https://encore.dev/docs/ts/primitives/cron-jobs
  type: Documentation
- url: https://encore.dev/docs/ts/primitives/object-storage
  type: Documentation
- url: https://encore.dev/docs/ts/primitives/secrets
  type: Documentation
- url: json-schema/encore-infrastructure-resource-schema.json
  type: JSONSchema
description: Encore's Infrastructure from Code API lets developers declare cloud infrastructure resources
  — PostgreSQL databases, Pub/Sub topics and subscriptions, object storage buckets, cron jobs, caches,
  and secrets — as typed code primitives inside their backend. Encore parses these declarations to provision
  matching infrastructure locally (Docker-free) for development and on AWS or GCP in production via Encore
  Cloud, without Terraform, YAML, or manual wiring.