Cloudflare Docs
Cloudflare Image Optimization
Edit this page on GitHub
Set theme to dark (⇧+D)

Enable Sourcing Kit

Enabling Sourcing Kit will set it up with the necessary information to start importing images from your Amazon S3 account.

​​ Create your first import job

  1. Log in to the Cloudflare dashboard, and select your account.
  2. Go to Images > Sourcing Kit.
  3. Select Import images to create an import job.
  4. In Source name give your source an appropriate name.
  5. In Amazon S3 bucket information enter the S3’s bucket name where your images are stored.
  6. In Required credentials, enter your Amazon S3 credentials. This is required to connect Cloudflare Images to your source and import your images. Refer to Credentials to learn more about how to set up credentials.
  7. Select Next.
  8. In Basic rules define the Amazon S3 path to import your images from, and the path you want to copy your images to in your Cloudflare Images account. This is optional, and you can leave these fields blank.
  9. On the same page, in Overwrite images, you need to choose what happens when the files in your source change. The recommended action is to copy the new images and overwrite the old ones on your Cloudflare Images account. You can also choose to skip the import, and keep what you already have on your Cloudflare Images account.
  10. Select Next.
  11. Review and confirm the information regarding the import job you created. Select Import images to start importing images from your source.

Your import job is now created. You can review the job status on the Sourcing Kit main page. It will show you information such as how many objects it found, how many images were imported, and any errors that might have occurred.

​​ Define a new source

  1. Log in to the Cloudflare dashboard, and select your account.
  2. Go to Images > Sourcing Kit.
  3. Select Import images > Define a new source.

Repeat steps 4-11 in Create your first import job to finish setting up your new source.

​​ Define additional import jobs

You can have many import jobs from the same or different sources. If you select an existing source to create a new import job, you will not need to enter your credentials again.

  1. Log in to the Cloudflare dashboard, and select your account.
  2. Go to Images > Sourcing Kit.
  3. Select Import images.
  4. Choose from one of the sources already configured.

Repeat steps 8-11 in Create your first import job to finish setting up your new import job.

​​ Next steps

Refer to Edit source details to learn more about editing details for import jobs you have already created, or to learn how to abort running import jobs.