Help Docs

Automation to invoke Lambda@Edge functions

Using Site24x7's IT Automation framework, you can automate to invoke a Lambda@edge function. You can also configure the automation to be triggered when there is a change in the status of the monitor or individual attributes.

Required Permissions

Please make sure the IAM role assumed by Site24x7, or the IAM user created for Site24x7, has the following partial write actions in the attached policy document so it can perform the actions.

  • lambda:InvokeFunction

Create an action profile

  1. Log in to the Site24x7 web console, then select Admin > IT Automation Templates(+) > Add Automation Templates.
  2. Click the drop-down next to Type, and select Lambda@Edge Function Actions.
  3. Enter a display name.
  4. Next, select the action to be performed from the drop-down: Invoke Lambda@Edge Function.
  5. From the drop-down next to Destination Lambda@Egde Function(s), select the monitors for which automations are to be run.
  6. Enter the Max Allowed Action Execution Time. This is the maximum number of seconds Site24x7 will wait before the request times out. By default, the execution time is set to 15 seconds. You can define an execution time between one and 90 seconds.
  7. If you’d like to receive an email regarding the automation result, select Yes next to Send the Automation Result via Email. Share automation results via an email to your User Alert Group configured in the Notification Profile. This email will contain parameters including the automation name, type of automation, incident reason, destination hosts, and more.
  8. Save the profile.

Simulate the Automation

Before mapping the action profile, you can test how it functions by invoking the operational task manually within the Site24x7 console, or by using our REST APIs to check whether the appropriate write-level permission is in place. To test it, navigate back to the IT Automation summary page [Admin > IT Automation Templates(+)] and click the play icon to execute a dry run.

Map the Action Profile

To execute the automation, map the action profile to the desired alert event. You can either map the profile to a predefined monitor-level event type or to a custom attribute-level event type.

Monitor-level mapping

Navigate to the IT Automation Templates section on the Edit page of the monitored Lambda@Edge function. Map the action profile with any of the following monitor status changes:

  • Execute on Down
  • Execute on Up
  • Execute on Trouble
  • Execute on Critical
  • Execute on any Status change

Attribute level mapping

You can also associate the profile with related performance metrics, like invocations, errors, throttles, and more. Navigate to the Edit Threshold Profile page of the monitored Lambda@Edge function by going to the Edit page of the resource, clicking on the pencil icon beside the Threshold and Availability field. Map the profile to any desired attribute.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!