Some CLI tools to make working with Datomic Cloud easier.
Install Clojure CLI tools and AWS CLI.
The installation simply creates a bash script called dc-tools.sh
that calls this library via the Clojure CLI tools.
echo "clojure -Sdeps '{:deps {compute/datomic-cloud-tools {:git/url \"https://github.com/ComputeSoftware/datomic-cloud-tools.git\" :sha \"d129439d84987b46928d7b93d1db6a280e694834\"}}}' -m dc-tools \$@" > dc-tools.sh
Datomic Cloud provides documentation on how to delete a system. This process is, however, quite manual. This does not integrate well with infrastructure-as-code tooling and does not really fit in with the automate-everything sort of mentality.
This script will automate the steps to delete the durable storage a Datomic Cloud system uses. Running the below commandwill run through all the steps using the
./dc-tools.sh delete-storage [datomic-system]
This command will list all Datomic Systems that are current running in your AWS account.
./dc-tools.sh list-running-systems