Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Working with AWS Redshift

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.

1. Set up

Refer to the setup guide in ReadMe for necessary credentials.

2. Configuration

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>"

Run the Example

  1. First, run the setup ballerina program to set up the MUSIC_STORE database used in the sample. Execute the following command:
cd setup
bal run
  1. Then to run the music_store example, execute the following command:
cd music_store
bal run