How to do it...

  1. Log in to the AWS Console, select CloudFront Distributions, then select your distribution, and go to the Restrictions tab.
CloudFront Console
  1. Click on Edit.
CloudFront Restrictions Setup
Once you enable the feature, you can select whether you want to configure a whitelist or blacklist of countries for your distribution.
  1. Select one or more countries from the list in the left-side box, and move those countries to the right-side box and then click on Yes, Edit button.
Enable CloudFront Restrictions
  1. That's it! Once this ...

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.