YAML for environments
Learn how to configure environments with variables and permissions using YAML format.
YAML parameters for YAML for environments
Environment
environmentrequiredstring
The environment identifier (human-readable ID)namerequiredstring
The display name of the environmenttagsstring[]
The list of tags associated with the environmentscopestring enum
The scope of the environmentAllowed enum:
PROJECT,WORKSPACE,ANYbase_environmentsstring[]
The list of base environment identifiers this environment inherits from (specified by project slug and environment slug)variablesVariableYaml[]
The list of environment variablespermissionsEnvironmentPermissionsYaml
Access control settings for the environmentbase_onlyboolean
Whether this environment serves only as a base for other environmentsiconstring
The environment icon (a single emoji character)urlstring
The target URL associated with the environmenttargets(string | TargetYaml)[]
The list of deployment targets associated with the environmentsandboxesSandboxYaml[]
The list of sandboxes scoped to the environmentnotestring
Note for this resourceagent_notestring
YAML note for AI agents operating on this resourceTarget
targetrequiredstring
The human-readable ID of the targetdisabledboolean
Indicates if this target is disabled (default: false)tagsstring[]
The list of tags associated with the targetpermissionsPermissionsYaml
The permissions for the targetuse_asUseAsYaml
Defines how the target can be used (as deployment target, proxy, or both)notestring
Note for this resourceagent_notestring
YAML note for AI agents operating on this resourceType-specific fields, by target type:
SSH Server - SSH target for deploying to remote servers via SSH connection.
hostrequiredstring
The host for the connectionnamestring
The name of the targetportstring
The port for the connectionpathstring
Path on the server defined in the targetauthSSHAuthYaml
Authentication detailsproxystring | TargetSSHProxyYaml
Define a SSH proxy server using the following parameterstypestring
Value: SSH
FTP Server - FTP/FTPS target for file transfer deployments.
hostrequiredstring
The host for the connectionsecureboolean
Whether connection is secure (SFTP/FTPS)namestring
The name of the targetportstring
The port for the connectionauthFTPAuthYaml
Authentication detailspathstring
Path on the server defined in the targettypestring
Value: FTP
Vultr Server - Vultr server target for deploying to Vultr virtual machines.
integrationrequiredstring
The integration identifierhostrequiredstring
The host for the connectionnamestring
The name of the targetportstring
The port for the connectionpathstring
Path on the server defined in the targetauthSSHAuthYaml
Authentication detailsproxystring | TargetSSHProxyYaml
Define a SSH proxy server using the following parameterstypestring
Value: VULTR
UpCloud Server - UpCloud server target for deploying to UpCloud virtual machines.
integrationrequiredstring
The integration identifierhostrequiredstring
The host for the connectionnamestring
The name of the targetportstring
The port for the connectionpathstring
Path on the server defined in the targetauthSSHAuthYaml
Authentication detailsproxystring | TargetSSHProxyYaml
Define a SSH proxy server using the following parameterstypestring
Value: UPCLOUD
DigitalOcean Droplet - DigitalOcean Droplet target for deploying to DigitalOcean virtual machines.
integrationrequiredstring
The integration identifierhostrequiredstring
The host for the connectionnamestring
The name of the targetportstring
The port for the connectionpathstring
Path on the server defined in the targetauthSSHAuthYaml
Authentication detailsproxystring | TargetSSHProxyYaml
Define a SSH proxy server using the following parameterstypestring
Value: DIGITAL_OCEAN
Git Repository - Git target for pushing changes to remote Git repositories.
repositoryrequiredstring
The URL to the Git repositorynamestring
The name of the targetauthGitAuthYaml
Authentication detailstypestring
Value: GIT
Google Kubernetes Engine - Google Kubernetes Engine (GKE) target for deploying to Google Cloud.
integrationrequiredstring
The integration. Required when adding GKE/EKS/AKS/DOKSclusterrequiredstring
The ID of the cluster or fully qualified identifier for the clusternamestring
The name of the targetregionstring
Cloud region, e.g. eu-central-1application_idstring
The ID of the application/projectprojectstring
The ID of the Google Cloud projectsubscriptionstring
Type of AKS subscriptionresource_groupstring
Azure resource group containing the AKS clusterzonestring
GKE zone. E.g., europe-west3-aproxystring
Proxy configuration to route K8s API traffic through (for private clusters)typestring
Value: GKE
DigitalOcean Kubernetes - DigitalOcean Kubernetes Service (DOKS) target for deploying to DigitalOcean.
integrationrequiredstring
The integration. Required when adding GKE/EKS/AKS/DOKSclusterrequiredstring
The ID of the cluster or fully qualified identifier for the clusternamestring
The name of the targetregionstring
Cloud region, e.g. eu-central-1application_idstring
The ID of the application/projectprojectstring
The ID of the Google Cloud projectsubscriptionstring
Type of AKS subscriptionresource_groupstring
Azure resource group containing the AKS clusterzonestring
GKE zone. E.g., europe-west3-aproxystring
Proxy configuration to route K8s API traffic through (for private clusters)typestring
Value: DOKS
Azure Kubernetes Service - Azure Kubernetes Service (AKS) target for deploying to Azure.
integrationrequiredstring
The integration. Required when adding GKE/EKS/AKS/DOKSclusterrequiredstring
The ID of the cluster or fully qualified identifier for the clusternamestring
The name of the targetregionstring
Cloud region, e.g. eu-central-1application_idstring
The ID of the application/projectprojectstring
The ID of the Google Cloud projectsubscriptionstring
Type of AKS subscriptionresource_groupstring
Azure resource group containing the AKS clusterzonestring
GKE zone. E.g., europe-west3-aproxystring
Proxy configuration to route K8s API traffic through (for private clusters)typestring
Value: AKS
Amazon Elastic Kubernetes Service - Amazon Elastic Kubernetes Service (EKS) target for deploying to AWS.
integrationrequiredstring
The integration. Required when adding GKE/EKS/AKS/DOKSclusterrequiredstring
The ID of the cluster or fully qualified identifier for the clusterrole_arnstring
Amazon resource name specifying the IAM role to assumenamestring
The name of the targetregionstring
Cloud region, e.g. eu-central-1application_idstring
The ID of the application/projectprojectstring
The ID of the Google Cloud projectsubscriptionstring
Type of AKS subscriptionresource_groupstring
Azure resource group containing the AKS clusterzonestring
GKE zone. E.g., europe-west3-aproxystring
Proxy configuration to route K8s API traffic through (for private clusters)typestring
Value: EKS
Kubernetes Cluster - Self-managed Kubernetes cluster target.
clusterrequiredstring
The ID of the cluster or fully qualified identifier for the clusterauthK8sAuthYaml
Kubernetes cluster authentication configurationnamestring
The name of the targetintegrationstring
The integration. Required when adding GKE/EKS/AKS/DOKSregionstring
Cloud region, e.g. eu-central-1application_idstring
The ID of the application/projectprojectstring
The ID of the Google Cloud projectsubscriptionstring
Type of AKS subscriptionresource_groupstring
Azure resource group containing the AKS clusterzonestring
GKE zone. E.g., europe-west3-aproxystring
Proxy configuration to route K8s API traffic through (for private clusters)typestring
Value: K8S_CLUSTER
MySQL - MySQL target for executing queries on a MySQL database.
hostrequiredstring
The hostname or IP address of the MySQL servernamestring
The name of the targetportstring
The port of the MySQL server. Default: 3306databasestring
The default database nameauthMysqlAuthYaml
MySQL authentication credentialsproxystring
SSH proxy target for tunneling to private MySQL serverstypestring
Value: MYSQL
PostgreSQL - PostgreSQL target for executing queries on a PostgreSQL database.
hostrequiredstring
The hostname or IP address of the PostgreSQL servernamestring
The name of the targetportstring
The port of the PostgreSQL server. Default: 5432databasestring
The default database nameauthPostgresqlAuthYaml
PostgreSQL authentication credentialsproxystring
SSH proxy target for tunneling to private PostgreSQL serverstypestring
Value: POSTGRESQL
MongoDB - MongoDB target for executing queries on a MongoDB database.
hostrequiredstring
The hostname or IP address of the MongoDB servernamestring
The name of the targetportstring
The port of the MongoDB server. Default: 27017databasestring
The default database nameauth_sourcestring
The authentication database (e.g. admin). If not set, the target database is usedauthMongoAuthYaml
MongoDB authentication credentialsproxystring
SSH proxy target for tunneling to private MongoDB serverstypestring
Value: MONGO
Microsoft SQL Server - Microsoft SQL Server target for executing queries on an MSSQL database.
hostrequiredstring
The hostname or IP address of the MSSQL servernamestring
The name of the targetportstring
The port of the MSSQL server. Default: 1433databasestring
The default database namessl_modestring enum
SSL connection mode. Default: REQUIRE, which encrypts but does NOT validate the server certificate (vulnerable to MITM); full certificate validation requires ca_certificate.Allowed enum:
DISABLE,REQUIRE,VERIFY_FULLca_certificatestring
PEM-encoded CA certificate (required when ssl_mode is VERIFY_FULL)authMssqlAuthYaml
MSSQL authentication credentialsproxystring
SSH proxy target for tunneling to private MSSQL serverstypestring
Value: MSSQL
AWS RDS for SQL Server - AWS RDS for SQL Server target for executing queries on an RDS-managed MSSQL instance.
integrationrequiredstring
Hash ID or identifier of an AWS integrationregionrequiredstring
AWS region of the RDS instance, e.g. us-east-1db_instance_identifierrequiredstring
RDS DB instance identifierhostrequiredstring
The endpoint hostname of the RDS instancenamestring
The name of the targetportstring
The port of the RDS MSSQL instance. Default: 1433databasestring
The default database namessl_modestring enum
SSL connection mode. Default: REQUIRE.Allowed enum:
DISABLE,REQUIRE,VERIFY_FULLca_certificatestring
PEM-encoded CA certificate (required when ssl_mode is VERIFY_FULL)authMssqlAuthYaml
MSSQL authentication credentialsproxystring
SSH proxy target for tunneling to RDS instances in private VPCstypestring
Value: RDS_MSSQL
ClickHouse - ClickHouse target for executing queries on a ClickHouse database.
hostrequiredstring
The hostname or IP address of the ClickHouse servernamestring
The name of the targetportstring
The native protocol port of the ClickHouse server. Default: 9000databasestring
The default database namesecureboolean
Whether to use a TLS-secured native protocol connection. Default: falseauthClickhouseAuthYaml
ClickHouse authentication credentialsproxystring
SSH proxy target for tunneling to private ClickHouse serverstypestring
Value: CLICKHOUSE
Last modified on Jul 21, 2026
YAML examples for YAML for environments
Minimal environment
yaml- environment: my-env name: My Environment
Environment with variables, permissions and targets
yaml- environment: stage name: Stage scope: WORKSPACE url: https://stage.company.com icon: 🚀 tags: - backend-api - staging base_only: false base_environments: - production variables: - key: DATABASE_URL value: postgres://staging:5432/app type: VAR note: Database connection string - key: API_KEY value: secret type: VAR settable: ENABLED permissions: others: DENIED users: user@example.com: MANAGE groups: developers: USE_ONLY pipelines: - project: my-project pipeline: deploy access: USE_ONLY environments: - project: my-project environment: production access: USE_ONLY targets: - target: staging-ftp type: FTP name: Staging FTP Server host: 192.168.12.12 path: /var/www/html/site.com auth: username: deploy-user password: secret