I have spring boot service (with GET end point) deployed on Lambda as a function. I am able to test it in Lambda console and it returns the response. I created "Function URL" (so that i can use that as end point) to use it further from my front end app.
But, whenever i click on this function url, it launches browser and throws {"Message":"Forbidden"} error. I created function for public access [FunctionURLAllowPublicAccess]..The same lambda function works fine when i tested using 'API gateway - aws proxy' like below on lambda console:
My code flow is: Spring Boot GET end point calls -> AWS RDS database and get data -> return to spring boot GET end point.
Anyone calls this Spring boot GET end point like this: http://......./searchAll - it gets the data from RDS and return via Spring boot service.
Hello,
I have spring boot service (with GET end point) deployed on Lambda as a function. I am able to test it in Lambda console and it returns the response. I created "Function URL" (so that i can use that as end point) to use it further from my front end app. But, whenever i click on this function url, it launches browser and throws {"Message":"Forbidden"} error. I created function for public access [FunctionURLAllowPublicAccess]..The same lambda function works fine when i tested using 'API gateway - aws proxy' like below on lambda console:
Entire Github project has uploaded here: https://github.com/JonathanGladwin/awstest I uploaded this JAR file in S3 bucket and uploaded it in Lambda function.
My code flow is: Spring Boot GET end point calls -> AWS RDS database and get data -> return to spring boot GET end point. Anyone calls this Spring boot GET end point like this: http://......./searchAll - it gets the data from RDS and return via Spring boot service.