Amazon Linux and Kong


#1

Install and use Kong with AWS Linux.

AWS Linux and Kong installation documentation


#2

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.

  1. 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).
  2. 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

  1. 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.

  1. 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.


#3

MySQL is not a supported datastore - you must choose either Postgres or Cassandra.