This guide explains how to create an HTTP RESTful API using Ballerina for performing basic CRUD operations on a database by connecting to AWS Redshift.
Refer to the setup guide in ReadMe for necessary credentials.
Configure AWS Redshift API credentials in Config.toml
within the setup and music_store directories:
jdbcUrl="<JDBC URL of the created Redshift cluster>"
user="<Username>"
password="<Password>"
- First, run the
setup
ballerina program to set up theMUSIC_STORE
database used in the sample. Execute the following command:
cd setup
bal run
- Then to run the
music_store
example, execute the following command:
cd music_store
bal run