Create a Connection¶
Connections in Choreo provide a simple and uniform approach to seamlessly integrate components with services or resources.
Choreo allows you to create connections to services deployed in Choreo or registered as external services. It also allows you to create connections to any Choreo-managed database.
To create a connection to a service or a database, follow the step-by-step instructions in the respective tab:
Create a connection to a Choreo service
Follow these steps to create a connection to a service deployed in Choreo:
-
In the Choreo Console, go to the top navigation menu and set the visibility level as project or component as follows:
- Project Connection: Select an organization and a project in that organization.
- Component Connection: Select an organization, a project in that organization, and a component in the selected project.
-
In the left navigation menu, click Dependencies and then Connections. This page lists all the existing connections.
- Click +Create. This opens the Marketplace view where you can browse and search for services or databases.
- Click the Services tab. You can search and apply filters to efficiently find a service.
- Click on the service you want to connect to.
- Enter a name and a description for the connection.
- Select an Access Mode and Authentication Scheme for the connection.
- Click Create.
This creates the connection and displays its details for each environment, along with an inline guide on how to use the connection in your component.
Create a connection to an external service
Follow these steps to create a connection to an external service:
- Follow steps 1–5 from the previous section.
- Expand the Environment to Endpoint section and verify the service endpoints assigned to the Choreo environments.
- Click Create.
For step-by-step instructions on using a connection in your service, see Use a Connection in Your Service.
For step-by-step instructions on using a connection in your web application, see Use a Connection in Your Web Application.
Prerequisites:
- Create a Choreo-managed database. For details, see Choreo-Managed Databases and Caches.
- Add the database to the Marketplace. For details, see Add Choreo-Managed Databases and Caches to the Marketplace.
Follow these steps to create a connection to a Choreo-managed database:
-
In the Choreo Console, go to the top navigation menu and set the visibility level as project or component as follows:
- Project Connection: Select an organization and a project in that organization.
- Component Connection: Select an organization, a project in that organization, and a component in the selected project.
-
In the left navigation menu, click Dependencies and then Connections. This page lists all the existing connections.
- Click +Create. This opens the Marketplace view where you can browse and search for services or databases.
- Click the Databases tab. You can search and apply filters to efficiently find a database.
- Click on the database you want to connect to.
-
To create the connection, follow these steps:
- Enter a name and description.
-
Under Environment Configuration, select credentials for each environment.
Note
By default, the selected database is applied to all environments. To use different databases for specific environments, select the appropriate database and provide the corresponding credentials for each environment.
-
Click Create.
This creates the connection and displays the database connection details for each environment, along with an inline guide on how to use the connection in your component.
For step-by-step instructions on using a database in your component, see Use a Database Connection in Your Component.