Install and use Kong with AWS Linux.
Hi,
I have been breaking my head for the past one week , to make Kong run with MySQL. These are the steps that I followed to install Kong in Amazon Linux AMI.
- In our sand box environment, I have created a folder named Kong and copied kong-community-edition-0.14.1.aws.rpm (downloaded from internet - Package for Linux AMI).
- Executed the below commands as mentioned in the documentation.
$ sudo yum install epel-release
$ sudo yum install kong-community-edition-0.14.1.aws.rpm --nogpgcheck
- Added the below lines to kong.conf.default and made a copy (kong.conf) with $ cp /etc/kong/kong.conf.default /etc/kong/kong.conf command.
mysql_host = 127.0.0.1 # The MySQL host to connect to.
mysql_port = 3306 # The port to connect to.
mysql_database = kong # The database name to connect to.
mysql_user = kong # The username to authenticate if required.
mysql_password = kong #The password to authenticate if required.
- kong start (Started kong).
It throws the below error.
Our Linux version is as shown below.
$ cat /etc/os-release
NAME=“Amazon Linux AMI”
VERSION=“2018.03”
ID=“amzn”
ID_LIKE=“rhel fedora”
VERSION_ID=“2018.03”
PRETTY_NAME=“Amazon Linux AMI 2018.03”
ANSI_COLOR=“0;33”
CPE_NAME=“cpe:/o:amazon:linux:2018.03:ga”
Request experts to help me resolve the issue.
MySQL is not a supported datastore - you must choose either Postgres or Cassandra.
Is kong Only support this two types of database or there is any other structured database its support like Oracle /SQL…
Also Can I use aws RDS instance of (PostgreSQL) for POC set-up?
Thanks
Baharul Islam
Yes, Kong is compatible with RDS PostgreSQL.