Set up a backend bucket as an origin for Cloud CDN

This quickstart shows you how to set up a backend bucket as an origin for Cloud CDN by using the Google Cloud console.


To follow step-by-step guidance for this task directly in the Google Cloud console, click Guide me:

Guide me


Before you begin

Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.

In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

Roles required to select or create a project

  • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
  • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

Go to project selector

If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.

Verify that billing is enabled for your Google Cloud project.

In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

Roles required to select or create a project

  • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
  • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

Go to project selector

If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.

Verify that billing is enabled for your Google Cloud project.

Required roles

To get the permissions that you need to complete this tutorial, ask your administrator to grant you the following IAM roles on your project:

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

Create a Cloud Storage bucket

Buckets are the basic containers that hold your data in Cloud Storage.

To create a bucket, follow these steps:

  1. In the Google Cloud console, go to the Cloud Storage Buckets page.

    Go to Buckets

  2. Click Create. Show me.
  3. In the Name your bucket section, enter a unique name for your bucket.

    Click Continue.

  4. In the Choose where to store your data section, do the following:
    1. For Location type, select Region, and then select us-east1 (South Carolina) from the list.
    2. Click Continue.
  5. In the Choose a storage class for your data section, do the following:
    1. Select Set a default class, and then select Standard.
    2. Click Continue.
  6. In the Choose how to control access to objects section, do the following:
    • Clear the Enforce public access prevention on this bucket checkbox.
    • For Access control, select Uniform.
    • Click Continue.
  7. In the Choose how to protect object data section, keep the selected defaults, and then click Create .

Upload an object into the bucket

  1. Save the following image on your device:

    The image of a kitten to upload into the bucket.
  2. On the Bucket details page, on the Objects tab, click