Skip to main content

Application that reads yaml and syncs definitions with amazon

Project description

A python application that reads YAML and syncs definitions with amazon.

It currently supports:

  • Creation and modification of IAM roles permissions

  • Creation of instance profiles for an IAM role

  • Creation of s3 buckets

  • Modification of s3 bucket policy and s3 bucket tags

  • Modification of bucket website, logging and lifecycle configuration

  • Creation and modification of KMS keys

  • Creation and modification of KMS key grants

  • Creation and modification of Lambda functions

  • Creation and modification of apigateways

  • Creation and modification of Route53 CNAMEs

See more documentation at http://aws_syncr.readthedocs.org

Installation

aws_syncr is on pypi!:

$ pip install aws_syncr

Running

aws_syncr is designed to configure the same definition across multiple accounts.

To run it you have the following file structure:

accounts.yaml
<environment1>/
    config1.yaml
    config2.yaml
<environment2>/
    config1.yaml
    config2.yaml

And then you run:

$ aws_syncr <environment> sync

For example, let’s say you have a dev environment and a stg environment:

accounts.yaml

    ---

    accounts:
        dev: 123456789
        stg: 382093840

roles.yaml

    ---

    roles:
        my_role:
            [..]

dev/
    roles.yaml - symlink to ../roles.yaml

stg/
    roles.yaml - symlink to ../roles.yaml

Then from that folder:

$ aws_syncr dev sync --dry-run
$ aws_syncr dev sync

Or if you are not in that folder:

$ AWS_SYNCR_CONFIG_FOLDER=<folder> aws_syncr [..]

Tests

Run the following:

$ pip install -e .
$ pip install -e ".[tests]"
$ ./test.sh

Or use tox:

$ tox

Changelog

0.6.1
  • Update pycryptodome because of CVE-2018-15560

0.6
  • Change from PyCrypto to pycryptodome

  • Update other dependencies

Before 0.6
  • No changelog was kept

Project details


Download files

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

Source Distribution

aws_syncr-0.6.1.tar.gz (41.5 kB view details)

Uploaded Source

File details

Details for the file aws_syncr-0.6.1.tar.gz.

File metadata

  • Download URL: aws_syncr-0.6.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/2.7.14

File hashes

Hashes for aws_syncr-0.6.1.tar.gz
Algorithm Hash digest
SHA256 0791adb5e02fa2dccf4221af6d5b3ece6a56d8d17e89a08a63ff500d5f896ac5
MD5 3bf23d55ccf7cc213261a74e90121df5
BLAKE2b-256 d97104599b9626204bf8477005a1e20b87d2eda8ce777a2f126757adb94cb879

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page