*** Want to clone this script? ***
https://wayscript.com/script/2xNznluo

Help in Setting up the Datadog Trigger:
https://youtu.be/ZQdl9mB017Q

Info on the Invoke boto3 method:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html

Code from this video:
import boto3

def build_client():
lambda_client = boto3.client(
‘lambda’,
region_name = ‘us-east-2’,
aws_access_key_id= »,
aws_secret_access_key= »
)
return lambda_client

event = variables[‘Event’]
title = event.get(‘title’)

if ‘data’ in title:
lambda_client = build_client()
response = lambda_client.invoke(
FunctionName=’HelloWorldTemplate’,
InvocationType=’RequestResponse’,
LogType=’Tail’,

)

print(response)

Available in the wayscript marketplace and also on github:
https://github.com/wayscript/code_snippets/tree/master/Event%20Remediation/Invoking%20Lambda%20Functions

Questions about this script or anything else? Join our discord. We’re always around to help.
https://discord.gg/VWbXSbj

https://wayscript.com/

Follow WayScript on Social Media:
GitHub – https://github.com/wayscript
Twitter – https://twitter.com/WayScriptHQ
Linkedin – https://www.linkedin.com/company/wayscript/
Instagram – https://www.instagram.com/wayscript/
Facebook – https://www.facebook.com/wayscript/

#WayScript gives you flexible building blocks to seamlessly integrate, automate, and host tools in the cloud. Unlock new potential with drag and drop programming.

Need ideas on how to use WayScript? View our template library to get ideas:
https://wayscript.com/community
Ready to get started? Get Superpowers with WayScript today.