#!/bin/bash -eu

source /root/domains/common/scripts/functions.sh

export NS=liiib-re
export S3_ENDPOINT=https://hot-objects.liiib.re
export STORAGE_CLASS=hot

# Create new hot bucket
export AWS_ACCESS_KEY_ID=nuage-liiib-re
export SECRET_NAME=nuage-liiib-re-s3-new
create_bucket
mc version enable ${STORAGE_CLASS}/${AWS_ACCESS_KEY_ID}