Function to trigger URL with Lambda. (in Node.js)
-
Add new function in AWS Lambda
-
Copy and Paste the code in index.js to NodeJS (1.7 or higher) and save
-
Go to CloudWatch -> Rules -> Add Rules
-
You can choose how you wanted this Lambda function is called.
-
Select target as constant and put this
{ "url": "https://domain.com/script.php" }