Quickstart

This quickstart enables Cloud CDN for an existing HTTP(S) load balancing setup. For additional instructions on enabling, disabling, and configuring Cloud CDN, or if you do not already have an HTTP(S) load balancer configured, see Using Cloud CDN.

Read the Overview for an introduction to Cloud CDN.

Using the gcloud command line tool

The steps on this page can be completed using the Google Cloud Platform Console UI or the gcloud command line tool.

You can access the gcloud command line tool in two ways:

  • Install the Google Cloud SDK by following the instructions at /sdk/downoads. If you haven't used the gcloud command line tool previously, first run gcloud init to authenticate.{: .special }

  • Use Google Cloud Shell, which comes with gcloud already installed.

Enable Cloud CDN for a pre-existing backend service

To enable Cloud CDN for a pre-existing backend service:

Console


  1. Go to the Cloud CDN page in the Google Cloud Platform Console.
    Go to the Cloud CDN page
  2. Click Add origin.
  3. In the Origin pull-down menu, click Select origin.
  4. Select the load balancer to use as a Cloud CDN origin.
  5. Click Add.

gcloud


gcloud compute backend-services update [BACKEND_SERVICE_NAME] \
    --enable-cdn

That's it. As users request content, Cloud CDN begins caching that content at the edges of the Google network.

What's next?

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud CDN Documentation