Skip to content

entrepot_blob_store

A blob store holds repository content. file stores use a directory on a mounted volume (PVC, EBS, EFS) under the server’s storage.allowedRoots; s3 stores use an S3-compatible bucket. Repositories choose their blob store at creation.

# A directory on a mounted volume (PVC, EBS or EFS) under the server's storage.allowedRoots.
resource "entrepot_blob_store" "efs" {
name = "shared"
type = "file"
file = { path = "/data/shared" }
}
# An S3 bucket. Leave access_key_id unset to use IRSA / the AWS default credential chain.
resource "entrepot_blob_store" "s3" {
name = "artifacts"
type = "s3"
s3 = {
bucket = "my-entrepot-artifacts"
region = "eu-west-2"
prefix = "prod"
redirect_downloads = true
}
}
  • name (String) Blob store name. Changing it forces a new store.
  • type (String) file or s3. Changing it forces a new store.
  • id (String) Same as name.

Required:

  • path (String) Directory, e.g. /data/default.

Required:

  • bucket (String)

Optional:

  • access_key_id (String) Leave unset to use the AWS default credential chain (IRSA).
  • endpoint (String) Custom endpoint for MinIO, Ceph RGW, R2, …
  • force_path_style (Boolean) Use path-style addressing (MinIO).
  • prefix (String) Key prefix inside the bucket.
  • redirect_downloads (Boolean) Redirect large downloads to presigned S3 URLs.
  • region (String)
  • secret_access_key (String, Sensitive) Write-only: never returned by the API, so changes made outside Terraform are not detected.

The terraform import command can be used, for example:

Terminal window
# Blob stores are imported by name.
terraform import entrepot_blob_store.s3 artifacts

Resource documentation generated from the provider’s schema (docs/resources/blob_store.md in terraform-provider-entrepot).