Amazon Elastic Beanstalk

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

**Silverstripe Version: 4.7.1

Question:

Has anyone had any luck deploying a Silverstripe project to Elastic Beanstalk on Amazon? The project seems to deploy, but something is wrong I am getting:

mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server](php - Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server - Stack Overflow)

I don;t know if I have to do something in .ebextensions or what.

Thanks