This post shows how to build a token-issuing service for Amazon IVS Real-Time Streaming with AWS WAF, Amazon API Gateway, AWS Lambda, and AWS Secrets Manager. It restricts a Real-Time stage by country and origin and signs tokens server-side with a cryptographic key pair.