Connect Service to Component - Manual Configuration

🕓 5 minutes

What you’ll learn

How to add a new service to your component in such a manner that CodeNow will automatically add the correct connection properties into your configuration file, so you don't need to do it manually.

Prerequisites

Steps

  1. After you configure your service, go to the component details and choose Create new connection.

  2. After the new connection has been created, click on the Connection properties button.

    • Go to your project code and set the environment variables as listed in the instructions so that CodeNow will automatically provide your application with the correct values.
  3. When your application is ready for deployment, you will be able to select a specific service instance for every environment and CodeNow will automatically provide your application with the correct values, so that your component will be connected to the chosen service.

Screenshot

Step 1.1

component_details

Step 1.2

new_connection

Step 1.3

name_service

Step 2.1

connect_properties

Example instructions for Apache Kafka.

connect_instructions

What`s next?

See our other manuals: