Skip to main content

Use AWS Tags As A Key-Value DataBase

Project description

AWS Tags As A DataBase (AWS TaaDB) 🚀🚀

PyPI version GitHub issues GitHub contributors GitHub last commit

NOTE: Please Don't Acutally Use this as a Database! Please Reference An AWS Database Safari By Corey Quinn for acutally databases

About 🏎️🏎️

Corey Quinn describes how to use AWS Managed DNS Offering (Route 53) as a DataBase in Route 53, Amazon Premier Database By Corey Quinn & Twitter Thread.

To continue to trend to misuse random AWS resources as, AWS Tags As A Database (AWS TaaDb) Python🐍🐍 library was created to use AWS Tags feature as a Key-Value database.

It uses AWS EC2 instance Tags as the database in its current configuration but nothing is stopping it from using any AWS resource that allows the use of Tags

Installation 🚀🚀

pip install TagsAsADatabase

Examples 🚀🚀

# imports AWS Tags As A Database Library
from TagsAsADatabase import DatabaseClient

# create a database client (using AWS EC2 instance Tags as backend)
# pass in the resource id of an ec2 instance
# region_name defaults to us-east-1
dbClient = DatabaseClient(INSTANCE_ID, region_name=REGION_NAME)

# gets all the current Keys of the key-value database
# returns type List[str]
print(dbClient.getAllKeys())

# gets all the key-value pairs
# returns as type Dict[str, str]
print(dbClient.getAllKeyPairs())

# adds or updates the VALUE at KEY 
dbClient.updateKeyValue(KEY, VALUE)

# deletes the key-value pair at KEY
dbClient.deleteKeyValue(KEY)

Resources 🚀🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for TagsAsADatabase, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size TagsAsADatabase-0.0.4.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View
Filename, size TagsAsADatabase-0.0.4-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page