Back to

Well, if you need some logos, we provide these:

svg ·  png
Red Clever Cloud logo
svg ·  png
svg ·  png
White Clever Cloud logo
svg · png
White Clever Cloud logo
svg · png
Posted at September 22, 2017 — Features

FS Buckets configured with Environment Variables

For a long time the only way to configure an FS Bucket for your application was to create a buckets.json file in ./clevercloud/ and specify the configuration in there. Not very Immutable Infrastucture friendly. It ends today.

Because you had to write a file in your code for a specific application, it made your code repository tied to a particular application. Sure there was a workaround with the apps field that allowed us to whitelist applications for each buckets. But it is still more painful than it should be.

Well starting today you can configure FS Buckets using environment variable. Here's what you need to add:


So if you have the following file:

    "bucket_host": "",
    "folder": "/sites/default/files"

You can delete it and replace it with the environment variable CC_FS_BUCKET=/sites/default/

If you have multiple buckets you can use multiple variables like so:



Laurent Doguin

Head of Developer Relation @clever_cloud. Devoxx Champion. I am also a nerdy metal head living in Paris.

Check out our Blog

We write about programming, security and Clever Cloud products

Join thousands of developers already using Clever Cloud. And try it for free!

Create your account now to start your apps and collaborate within a few minutes. For free with 20€ offered.

By signing up, your agree to our terms of use
Sign in with Github