Skip to main content

byv/buckets.json

The buckets.json file defines additional S3 buckets beyond the built-in ones that Nar creates automatically.

Location: {vertical}/nnet/byv/buckets.json


Example

[
{
"name": "uploads",
"versioning": true,
"force_destroy": false
},
{
"name": "temp",
"versioning": false,
"ttl_days": 30,
"force_destroy": true
}
]

To not create any additional buckets:

[]

Fields

Each entry in the array is a bucket definition:

FieldDescriptionRequired
nameBucket name prefix. The full bucket name includes the site, vertical, region, and account ID.Yes
versioningEnable S3 versioning on this bucket.No (default: false)
ttl_daysLifecycle rule — automatically delete objects after this many days.No
force_destroyAllow Nar to destroy this bucket even if it contains objects.No (default: false)

Built-in Buckets

Nar automatically creates these buckets without any configuration:

PrefixPurposeLayer
permProtected persistent data (versioning enabled)Data
uicoUI assets served by CloudFrontApp
artiBuild artifacts (7-day TTL)App
scraScratch/temporary files (7-day TTL)App

Use byv/buckets.json when you need buckets beyond these defaults.