Skip to main content

A simple library using consul locks to do one-time configuration tasks on AWS instances.

Project description

https://img.shields.io/pypi/v/instance-config.svg

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

This version
History Node

0.1.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
instance_config-0.1.2-py2.py3-none-any.whl (5.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page