Skip to content

Configuring a tile cache server

Andrey Maximov edited this page Feb 12, 2020 · 2 revisions

How to configure AWS Cloudfront

Prerequisites

A registered AWS account.

To register a new account:

Steps to configure the service

  1. Go to the AWS Console at https://console.aws.amazon.com/, log in

  2. In the top navigation menu find Services > Networking & Content Delivery > Cloudfront and click it. You are navigated to https://console.aws.amazon.com/cloudfront/home

  3. Click Get started if this a new account without CF distributions or Create Distribution if there are existing distributions

  4. Step 1: Select delivery method

    1. Click “Get started” under the “Web” section
  5. Step 2: Create distribution

    1. Origin Settings (only change the following fields):
      1. Origin Domain Name: maps.wikimedia.org
        1. You may need to use another domain if you use another map provider
      2. Origin Protocol Policy: Match Viewer
    2. Default Cache Behavior Settings (leave untouched)
    3. Distribution Settings (only change the following fields):
      1. Price Class: Use Only U.S., Canada and Europe
      2. Click Create Distribution
  6. You are redirected to the listing of distributions with the new distribution in status In Progress and with state Enabled.

    1. It will take some time for the service to initialize
  7. Use the new distribution domain name (should look like abcdef1234567.cloudfront.net) to replace the original map provider domain name.

Clone this wiki locally