Is there a way I can pass a date or a cron schedule as an input to my state function - which is getting called by a cloud watch event? The cloud watch event runs on a cron schedule and I would like to pass that dynamically on a daily basis to the step function
For example:
This gives some static input, but I want to give each day's date as input
resource "aws_cloudwatch_event_target" "target" {
rule = aws_cloudwatch_event_rule.samplerule.id
arn = aws_sfn_state_machine.samplemachine.id
role_arn = aws_iam_role.iam_for_sfn.arn
input = <<EOF
{
"operand1": "3",
"operand2": "5",
"operator": "add"
}
EOF
}