> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/object-storage-stook/connect-stook-bucket-to-cdn.md).

# Connect Stook Bucket to CDN

Connect a Stook Bucket to a Medianova CDN Resource to deliver stored objects through the CDN.

Connect a Stook Bucket to a Medianova CDN Resource to use the bucket as the origin for CDN content delivery.

The Stook Bucket must be publicly accessible before it can be connected to a CDN Resource. When a CDN Resource is created with a Stook Bucket through the Medianova Control Panel, **Public access** is enabled automatically for the selected bucket.

{% hint style="warning" %}
A Stook Bucket connected to a CDN Resource must remain public. **Public access** cannot be disabled and the Stook Bucket cannot be deleted while the CDN Resource is connected.

If **Block public access** is enabled for the Stook Bucket, disable it before connecting the bucket to a CDN Resource.
{% endhint %}

{% hint style="info" %}
For details about these settings, see [Public Access Block.](/products/object-storage-stook/bucket-configuration/public-access-block.md)
{% endhint %}

## Connect a Stook Bucket to a CDN Resource

{% stepper %}
{% step %}

### **Create a CDN Resource**

In the [Medianova Control Panel](https://cloud.medianova.com), select **CDN →** [**Create CDN Resource**](/products/performance-cdn/static-content-delivery/create-small-cdn-resource.md).

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-76647e85f121fe2a24aab4832d9c405df5c899bd%2Fconnect-stook-bucket-to-cdn.png?alt=media" alt="Create CDN Resource page in the Medianova Control Panel" width="563"><figcaption><p>Create a CDN Resource</p></figcaption></figure>
{% endstep %}

{% step %}

### **Select the CDN Resource type**

Select the required CDN Resource type. For example, select **Small Resource**.
{% endstep %}

{% step %}

### **Configure the CDN Resource**

Enter the required CDN Resource settings, then select **Bucket** as the source.
{% endstep %}

{% step %}

### **Select the Stook Bucket**

Select the Stook Bucket you want to use as the origin.

{% hint style="info" %}
The selected Stook Bucket acts as the origin for the CDN Resource. The CDN retrieves objects from the bucket and caches them for subsequent requests.
{% endhint %}
{% endstep %}

{% step %}

### **Create the CDN Resource**

Complete the remaining required settings, then select [**Create CDN Resource**](/products/performance-cdn/static-content-delivery/create-small-cdn-resource.md).

The CDN Resource is created and connected to the selected Stook Bucket.
{% endstep %}
{% endstepper %}

## Public Access Behavior

A Stook Bucket connected to a CDN Resource must remain publicly accessible because the CDN requests objects from the bucket without credentials.

The following restrictions apply while the connection exists:

* **Public access** cannot be disabled.
* **Block public access** cannot be enabled.
* The connected Stook Bucket cannot be deleted.

To make the Stook Bucket private, first remove it from the CDN Resource, then disable **Public access**.

A Stook Bucket with **Block public access** enabled cannot be connected to a CDN Resource. Disable **Block public access** before creating the CDN Resource.

## Related Topics

* [Public Access Block](/products/object-storage-stook/bucket-configuration/public-access-block.md)
* [Bucket Configuration](/products/object-storage-stook/bucket-configuration.md)
* [Getting Started with Stook](/products/object-storage-stook/getting-started-with-stook.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/object-storage-stook/connect-stook-bucket-to-cdn.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
