A simple library using consul locks to do one-time configuration tasks on AWS instances.
Project description
A simple library using consul locks to do one-time configuration tasks on AWS instances.
How to use it
from instance_config import Instance
instance = Instance()
@instance.every()
def do_each_time():
# This will run every time the script is invoked.
return
@instance.once(key='locks/my_app/create_user', version=1, timeout=60)
def create_user():
# This will only be run once, in declared order, for each version.
return do_create_user()
History
0.1.2 (2017-11-06)
First release on PyPI.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file instance_config-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: instance_config-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fbbabca1b5bcc5cbcded9e8ac68dbd0ed7399ddd4c19bcfa2e4019e5310da2 |
|
MD5 | 78de9befdc48278c236ad6ed6328b34d |
|
BLAKE2b-256 | ff5f308d542b5c02ec3221fad6e91a8de16978479f7eebbb4da40497f90e5ea8 |