I have written AWS lambda function in that I want to read database connection details from the property file and which in my classpath, but I am not able to load that file. Here is my code:
InputStream input = DBConfiguartion.class.getResourceAsStream("appsettings");
Reader r = new InputStreamReader(input, "UTF-8");
Properties prop = new Properties();
prop.load(r);
If I run this code through normal java console application that time it is working, but whenever I run it as AWS lambda function then InputStream is coming null.