I know it's possible to make a Lambda function run on a schedule using CloudWatch (which basically simulates CRON).
However, would it be possible to do so on a temporary basis, based on a manual trigger? For example, "click a button" to run a Lambda function every hour, but only for the next 48 hours - and then stop, and not start again until a human "presses the button".
The "button" could create a CloudWatch rule using the API, but how can I make the rule stop automatically/by itself after 48 hours?
Example of CloudWatch rule creation:
aws events put-rule \
--name my-scheduled-rule \
--schedule-expression 'rate(1 hour)'