liquid-labs / liquid-labs/cloudsite

On destroy, retain the DynamoDB table by default (if it has anything in it).

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Overview

We don't want to accidentally delete important data.

## Deliverables

- [ ] figure out how to retain the DB and make sure it doesn't cause a false error when it fails to delete
- [ ] implement `--destroy-data` option that will delete the DB
- [ ] check if DB is empty, in which case we always delete it
- [ ] add a `retained` section to `cloudsite-db.json` which is like `cleanup` described in #93, except it lists retained items.
- [ ] implement `cloudsite retained list`, `cloudsite retained list --arn` which can reuse the logic from cleanup
- [ ] implement `cloudsite retained delete XXX [YYY...]` which deletes the specified resources reusing the logic from cleanup

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing cleanup logic referenced in #93 and the cloudsite-db.json structure. Define the retained resource behavior and implement the listed cloudsite retained commands, including empty-table deletion and the --destroy-data override; done means retained resources are listed and selectively deleted without false destroy errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, cloud, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.