@@ -0,0 +1,1068 @@
+package com.aws.jdbc;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.SQLException;%0A%0Apublic class ConnectionHelper%0A%7B%0A    private String url;%0A%0A    private static ConnectionHelper instance;%0A    private ConnectionHelper()%0A    %7B%0A        url = %22jdbc:mysql://localhost:3306/mydb%22; // REPLACE with URL to RDS instance%0A    %7D%0A%0A    public static Connection getConnection() throws SQLException %7B%0A        if (instance == null) %7B%0A            instance = new ConnectionHelper();%0A        %7D%0A        try %7B%0A%0A            Class.forName(%22com.mysql.jdbc.Driver%22).newInstance();%0A            return DriverManager.getConnection(instance.url, %22root%22,%22root%22); //REPLACE with user name and password to RDS instance%0A        %7D%0A        catch (Exception e) %7B%0A            e.getStackTrace();%0A        %7D%0A        return null;%0A    %7D%0A    public static void close(Connection connection)%0A    %7B%0A        try %7B%0A            if (connection != null) %7B%0A                connection.close();%0A            %7D%0A        %7D catch (SQLException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Create ConnectionHelper.java