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:
Before you begin
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
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:
- Storage Admin (
roles/storage.admin) - Compute Load Balancer Admin (
roles/compute.loadBalancerAdmin)
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:
-
In the Google Cloud console, go to the Cloud Storage Buckets page.
-
Click Create.
Show me . -
In the
Name your bucket section, enter a unique name for your bucket.Click Continue.
- In the
Choose where to store your data section, do the following:- For Location type, select Region, and then
select
us-east1 (South Carolina)from the list. - Click Continue.
- For Location type, select Region, and then
select
- In the
Choose a storage class for your data section, do the following:- Select Set a default class, and then select Standard.
- Click Continue.
- 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.
- In the
Choose how to protect object data section, keep the selected defaults, and then clickCreate .
Upload an object into the bucket
Save the following image on your device:
- On the Bucket details page, on the
Objects tab, click