Neon
Neon is a serverless PostgreSQL platform that provides instant branching, autoscaling, and a generous free tier.Resources
NeonProject
Creates a Neon serverless PostgreSQL project.Props
Name of the project
Region where the project will be provisioned. Available regions:
aws-us-east-1aws-us-east-2aws-us-west-2aws-eu-central-1aws-eu-west-2aws-ap-southeast-1aws-ap-southeast-2aws-sa-east-1azure-eastus2azure-westus3azure-gwc
PostgreSQL version to use. Supported versions: 14, 15, 16, 17, 18
Default branch name
When
true, will adopt an existing project by nameWhether to delete the database when the resource is destroyed. When false, the database will only be removed from the state but not deleted via API.
History retention seconds for the project
Settings for the project
Default endpoint settings for the project
Returns
The ID of the project
Name of the Project
Time at which the project was created
Time at which the project was last updated
Hostname for proxy access
Region where the project is provisioned
PostgreSQL version used by the project
Connection URIs for the databases
Database roles created with the project
Databases created with the project
Default branch information
Compute endpoints for the project
NeonBranch
Creates a branch in a Neon project.Props
The project to create the new branch in. This can be a Project object or an ID string.
The name of the branch
Whether the branch is protected
The parent branch to create the new branch from. Default is the project’s default branch. This can be a Branch object or an ID string beginning with
br-.A Log Sequence Number (LSN) on the parent branch. The branch will be created with data from this LSN.
A timestamp identifying a point in time on the parent branch. The branch will be created with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example:
2024-02-26T12:00:00Z.When
true, will adopt an existing branch by nameThe timestamp when the branch is scheduled to expire and be automatically deleted. Must be set following the RFC 3339, section 5.6 format with precision up to seconds (such as 2025-06-09T18:02:16Z).
The source of initialization for the branch:
schema-only- creates a new root branch containing only the schemaparent-data- creates the branch with both schema and data from the parent
The endpoints to create for the branch. If you do not configure endpoints, you will not be able to connect to the branch.
Returns
The branch ID. This value is generated when a branch is created. A branch_id value has a br- prefix.
The ID of the project to which the branch belongs
The name of the branch
Whether the branch is protected
Whether the branch is the default branch
The timestamp when the branch was created
The timestamp when the branch was last updated
The endpoints for the branch
The databases for the branch
The roles for the branch
The connection URIs for the branch