A Target Configuration refers to the specific destination or environment where your development setup, facilitated by various Providers, is deployed and managed. Providers define the method and technology used to create your environments, while Targets Configurations specify the precise location or platform where these environments will reside.
A Target Configuration can be a local machine, a remote server, or a cloud instance, and it can vary based on the chosen Provider. Target Configurations offer the flexibility to deploy and manage environments across different platforms and accounts, all within the unified interface provided by Daytona.
Once you add your Target Configuration, it becomes available for selection whenever you create a new development environment in Daytona. You can create multiple Target Configurations, list existing ones, or delete those you no longer need.
Create a Target Configuration
Daytona provides an option to create a Target Configuration to use when managing Workspaces.
Run the following command to create a Target Configuration:
Select the appropriate Provider for the environment you want to deploy to.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted. The configuration options vary based on the selected Provider. The following example shows adding a remote Docker Target Configuration.
Click Enter to confirm adding the Target Configuration.
List Target Configurations
Daytona provides an option to keep track of your Target Configurations by listing all previously created Target Configurations with their details.
Run the following command to list currently set Target Configurations:
Upon running this command, Daytona will display a list of your Target Configurations with their details. You will be able to see the Target Configuration name, the Provider it is connected to, and its configured Runner.
Delete a Target Configuration
Daytona provides an option to delete Target Configurations, helping you manage and remove those that are no longer needed. Once a Target Configuration is deleted, you will not be able to manage or deploy Workspaces on that Target Configuration.
Run the following command to delete a Target Configuration:
Upon running this command, Daytona will display a list of your Target Configurations with their details. You will be able to see the Configuration name, the unique identifier of the Workspace, and the repository it is connected to.
Press Enter on the selected Configuration to delete it.
Click Yes to confirm deleting the Target Configuration.
Docker (Local)
Daytona provides an option to create a local Docker Target Configuration to use for deploying and managing Workspaces. The local Docker Target Configuration enables you to deploy Workspaces on your local machine using Docker.
Run the following command to create a Target Configuration:
Select Docker to use the local Docker Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
Docker (Remote)
Daytona provides an option to create a remote Docker Target Configuration to use for deploying and managing Workspaces. The remote Docker Target Configuration enables you to deploy Workspaces on a remote machine using Docker.
Run the following command to create a Target Configuration:
Select Docker to use the Docker Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
DigitalOcean
Daytona provides an option to create a DigitalOcean Target Configuration to use for deploying and managing Workspaces. The DigitalOcean Target Configuration enables you to deploy Workspaces a remote machine using DigitalOcean.
Run the following command to create a Target Configuration:
Select DigitalOcean to use the DigitalOcean Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
AWS
Daytona provides an option to create an AWS Target Configuration to use for deploying and managing Workspaces.
Run the following command to create a Target Configuration:
Select AWS to use the AWS Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm creating the Target Configuration.
Azure
Daytona provides an option to set an Azure Target Configuration to use for deploying and managing Workspaces.
Run the following command to set a Target Configuration:
Select Azure to use the Azure Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
GCP
Daytona provides an option to create a Google Cloud Platform (GCP) Target Configuration to use for deploying and managing Workspaces.
Run the following command to set a Target Configuration:
Select GCP to use the GCP Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
Hetzner
Daytona provides an option to create a Hetzner Target Configuration to use for deploying and managing Workspaces.
Run the following command to set a Target Configuration:
Select Hetzner to use the Hetzner Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.
Fly
Daytona provides an option to create a Fly Target Configuration to use for deploying and managing Workspaces.
Run the following command to set a Target Configuration:
Select Fly to use the Fly Provider.
Enter a name for your Target Configuration.
Enter the appropriate configuration options when prompted.
Click Enter to confirm setting the Target Configuration.