Deploy your PHP app to AWS Lambda with Bref.
Recent revisions are kept. Restoring one creates a new revision.