You can unlock the power and security of Lambda functions within Dataset to trigger various workflows.
A Dataset alert can easily trigger a lambda function, pass information through the POST body to lambda and have Lambda execute many functions.
High-level Architecture
Prereqs
- AWS Lambda
- Dataset
Steps
1. Create Function
2.Use echo command python template
3. Fill out the form
4. Configure API Gateway
5. Configure Security - Only Allow Dataset Ips to make posts.
Paste Existing Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "execute-api:Invoke",
"Resource": "arn:aws:execute-api:{region}:{account}:{gateway}/*/*/*"
},
{
"Effect": "Deny",
"Principal": "*",
"Action": "execute-api:Invoke",
"Resource": "arn:aws:execute-api:us-west-1:123456789:gatewayTest*/*/*",
"Condition": {
"NotIpAddress": {
"aws:SourceIp": [
"52.44.148.105/32",
"3.226.192.129/32",
"24.23.157.7/32",
"34.199.133.18/32",
"34.232.123.33/32",
"34.202.85.95/32",
"34.202.85.70/32"
]
}
}
}
]
}
5. Grab the API Gateway Address
Configure Dataset
Comments
0 comments
Please sign in to leave a comment.