Use AWS Tags As A Key-Value DataBase
Project description
AWS Tags As A DataBase (AWS TaaDB) 🚀🚀
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 🚀🚀
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#instance
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Instance.tags
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Instance.create_tags
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Instance.delete_tags
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Tag.reload
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file TagsAsADatabase-0.0.4.tar.gz
.
File metadata
- Download URL: TagsAsADatabase-0.0.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d1435c5d5d83b36a501eb363bef3749eb4045da9f3ba6a1d5e4185f10f6694 |
|
MD5 | 7c024b1ed5984555eb986b112c91ae30 |
|
BLAKE2b-256 | 97f88a81822c3bd6d4dd0f9233f23fb0fb14e284a38deaf745811323267dfa2e |
File details
Details for the file TagsAsADatabase-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: TagsAsADatabase-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20008b4de1af173ccbd0daa65578c7b65a31617b9d7d0f8595f9c9001984426f |
|
MD5 | e8a5e1ac7ca65193cf57bbb5a717ae38 |
|
BLAKE2b-256 | f5eb68cbcab50308fcc1bf65d043673deaebb9f5660879138868ec309412218d |