feat: record live Scaleway backup bucket attributes
Bucket railiance-platform-pg-backup is private in nl-ams with versioning and a 30-day lifecycle. Fill reef attributes and topology. Create script is idempotent. Billing budget still needs a console click.
This commit is contained in:
parent
c545d08f39
commit
e2bec62727
6 changed files with 36 additions and 26 deletions
|
|
@ -63,8 +63,12 @@ PY
|
|||
|
||||
export SCW_DEFAULT_REGION="$REGION"
|
||||
|
||||
echo "creating private bucket $BUCKET in $REGION (versioning on)"
|
||||
scw object bucket create "$BUCKET" region="$REGION" acl=private enable-versioning=true -o json
|
||||
if scw object bucket get "$BUCKET" region="$REGION" -o json >/dev/null 2>&1; then
|
||||
echo "bucket $BUCKET already exists in $REGION; skipping create"
|
||||
else
|
||||
echo "creating private bucket $BUCKET in $REGION (versioning on)"
|
||||
scw object bucket create "$BUCKET" region="$REGION" acl=private enable-versioning=true -o json
|
||||
fi
|
||||
|
||||
echo "applying 30-day lifecycle (current + noncurrent versions)"
|
||||
VENV="${TMPDIR:-/tmp}/reef-storage-boto3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue