I was going to write a post about setting geo restrictions for your CloudFront distribution but Andreas Wittig from Cloudonaut already did that so I’m going to just link to his post. However if you’re using AWS Amplify, like I do for this blog, you can not directly modify CloudFront settings as distribution is not shown on console.

Luckily there is an easy way to block or customise the content of your service using redirect based on country code of the client. Below is an example how I did redirect my russian audience to Wikipedia, to prioritise unbiased view of Russian invasion of Ukraine, over my notes about AWS.