The link at
https://github.com/squidfunk/terraform-aws-cognito-auth#terr... makes it clear that this is not generic Serverless, but is in fact specific to Terraform on top of Cognito.
That’s not necessarily a bad thing, but the title is somewhat misleading.