AWS SAM makes it easy to run a Lambda function on a schedule and pass in a JSON blob as a payload to your function. See the schedule SAM object. But it’s not as clear cut if you are trying to do this same thing with Terraform.