Hi ,
We are storing the userdetails in AWS DB, and We have our lambda api which returns userdetails when called ,
To call the API we are sending key and token in headers , the same api is returning data in our AMS environment , local environment as well as in POSTMAN , but the api is not returning any data in Cloud Environment and its running into exception, so is there anything we need to allow in lambda , please advise me on this issue what might be the potential cause for this behaviour.
Regards
Shankar
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi All,
Thanks for all replies
When I revisited the issue with a different perspective and analyzed the Lambda services, I noticed that all requests were being blocked by the WAF. We also observed that our cloud IP was visible in the logs.
To resolve this, we whitelisted our IP, which allowed us to successfully retrieve the data.
However, we encountered another issue: the IP kept changing dynamically due to the nature of cloud infrastructure.
To address this, we configured a dedicated Egress IP and updated our Java code by modifying the HttpClientBuilder to use HttpClients.useSystemProperties(). This change helped stabilize the IP.
After whitelisting the dedicated Egress IP and applying the Java code update, the issue was resolved.
Hope this helps.
Hi @Shankar_K ,
Could you please provide more details about the exception?
Additionally, have you checked the Dispatcher and CDN logs to see if the request is being blocked?
Hi @Shankar_K ,
Views
Replies
Total Likes
Hi @Shankar_K ,
fo. Since the API works in local, AMS, and Postman, but fails only from AEM Cloud, this points to an environment-specific issue. To help troubleshoot further, could you confirm:
Hi @Madhur-Madan @AmitVishwakarma @narendiran_ravi
x-amzn-RequestId | e7da5dca-2833-4f6a-9870-3db0af4a4384 |
x-amzn-ErrorType | ForbiddenException |
x-amz-apigw-id | K6lWeEWzIAMEELA= |
Views
Replies
Total Likes
Hi @Shankar_K
AEMaaCS blocks traffic for non-standards ports, if your API is listening in a non-standard port, you need to configure the Advanced Network Config, please check this: https://aemsimplifiedbynikhil.wordpress.com/2024/06/27/advanced-networking-in-aemaacs-http-https-con...
Hope this helps
@Shankar_K Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes
Hi All,
Thanks for all replies
When I revisited the issue with a different perspective and analyzed the Lambda services, I noticed that all requests were being blocked by the WAF. We also observed that our cloud IP was visible in the logs.
To resolve this, we whitelisted our IP, which allowed us to successfully retrieve the data.
However, we encountered another issue: the IP kept changing dynamically due to the nature of cloud infrastructure.
To address this, we configured a dedicated Egress IP and updated our Java code by modifying the HttpClientBuilder to use HttpClients.useSystemProperties(). This change helped stabilize the IP.
After whitelisting the dedicated Egress IP and applying the Java code update, the issue was resolved.
Hope this helps.
Views
Likes
Replies
Views
Likes
Replies