How To: Connect to Sql Server RDS with a AWS AMI HVR hub image
The problem is that the HVR AMI doesn't work out of the box because the SQL Server ODBC driver is not bundled with this package due to licensing restrictions. The Unix ODBC 2.3.1 driver is required to communicate with the SqlServer database. Unfortunately the installation cannot be found in the Amazon Linux package repository and therefore it cannot be installed with a simple "sudo yum install". Instead it has to be downloaded and installed by you.
Here are the steps to download and install on your AWS HVR hub.
Create a temporary folder on your hub machine for example in the /tmp folder
$ mkdir /tmp/odbc $ cd /tmp/odbc
Download the Unix ODBC and SQL Server ODBC packages:
$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/unixODBC-2.3.1-14.el7.x86_64.rpm $ wget https://packages.microsoft.com/rhel/7/prod/msodbcsql17-188.8.131.52-1.x86_64.rpm
Install both packages:
$ sudo rpm -i unixODBC-2.3.1-14.el7.x86_64.rpm $ sudo rpm -i msodbcsql17-184.108.40.206-1.x86_64.rpm
Create a symbolic link from libodbc.so.2 library to libodbc.so.1
$ cd /usr/lib64 $ sudo ln -s libodbc.so.2 libodbc.so.1
- and make sure you add your hub's private IP address to the RDS instance's security group then you should be all set.