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:

CC_FS_BUCKET=/path/to/folder:bucket_host

So if you have the following file:

[
  {
    "bucket_host": "bucket-c65762b6-4086-4c99-84b0-23eb85695809-fsbucket.services.clever-cloud.com",
    "folder": "/sites/default/files"
  }
]

You can delete it and replace it with the environment variable CC_FS_BUCKET=/sites/default/files:bucket-c65762b6-4086-4c99-84b0-23eb85695809-fsbucket.services.clever-cloud.com.

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

CC_FS_BUCKET=/path/to/folder:bucket_host
CC_FS_BUCKET_0=/path/to/folder:bucket_host
CC_FS_BUCKET_10=/path/to/folder:bucket_host

Blog

À lire également

Elasticsearch Observability: logs, metrics, and traces explained

Modern architectures generate ever-growing volumes of data. Microservices, APIs, cloud workloads, and serverless environments multiply potential failure points. In this context, understanding what is really happening in production has become a central challenge.
Engineering

ELK Stack: what it is used for and how to use it for observability

Understanding what is really happening inside a modern application has become increasingly complex. Microservices, cloud environments, and the growing number of physical or virtual servers all contribute to an explosion of technical signals. This distribution makes so-called “traditional” log analysis—based on directly connecting to a single machine—hard to sustain at scale.
Engineering

Identity Access Management: pillar of security and compliance

Identity Access Management (IAM) is now one of the foundations of information system security and governance.…

Engineering