1 Answer
- Newest
- Most votes
- Most comments
0
The question is not clear. Can you share an architecture diagram of what exactly are you trying to do with the lambda function and also please provide some details around what is the issue you are facing with the lambda function?
Relevant content
- asked 3 months ago
- asked 4 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
Hi @Indranil I am trying to create a custom widget for log queries in cloudwatch which uses a lambda function. We are creating a dropdown in the lamda to select the service to filter the logs. We are able to get the values in dropdown. But whenever we select the service from the dropdown it is not updating in the actual query. For this we have created a onchange function but the function is not getting invoked when select the service from the dropdown
Thanks for the clarification. Does your lambda function return Javascript? If that is the case, then As per the documentation https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/add_custom_widget_dashboard_security.html , "For security reasons, JavaScript is not allowed in the returned HTML."
There are however other means to have interactivity in the custom widget, as mentioned here - https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/add_custom_widget_dashboard_interactivity.html.