Giter Site home page Giter Site logo

aws-sceptremods's Introduction

Sceptremods

A library of trophosphere modules for use with Sceptre

Installation

Install to python 3.6 virtual environment:

source ~/python-venv/python3.6/bin/activate
git clone https://github.com/ucopacme/aws-sceptremods.git
pip install -e aws-sceptremods

Query Sceptremods Templates

The sceptremods cli tool lists and prints docs for template modules in the library:

~> sceptremods --list
sceptremods modules:
vpc
vpc_flowlogs

~> sceptremods --module vpc
Sceptremods Version: 0.0.2

Module: vpc
A troposphere module for generating an AWS cloudformation template
defining a VPC and subnets.

AWS resources created:
    VPC with attached InternetGateway
    Public and private subnets spanning AvailabilityZones per specification
    NatGatways in Public subnets
    RouteTables and default routes for all subnets.
[cut]

Sceptremods Config Examples

Under examples/ are sample projects detailing the configuration and usage of each the primary sceptremods template modules. Each has a README demonstrating sceptre command syntax and describing the sample environment.

aws-sceptremods> ls -1 examples/
basic_vpc
cloudfront_s3_website
ecs_fargate

Create a Project

Run sceptremods cli tool to initialize a new sceptre project:

sceptremods --init myproject --region us-west-2

This command populates a new project directory with basic sceptre layout and sceptremods wrappers. The new project directory and sceptre 'project_code' take on the name 'sceptre-${PROJECT}'.

~/tmp> find sceptre-myproject/ -type f
sceptre-myproject/templates/vpc_wrapper.py
sceptre-myproject/templates/vpc_flowlogs_wrapper.py
sceptre-myproject/hooks/hook_wrappers.py
sceptre-myproject/resolvers/resolver_wrappers.py
sceptre-myproject/config/config.yaml

~/tmp> cat sceptre-myproject/config/config.yaml
project_code: sceptre-myproject
region: us-west-2

Sceptre/Troposphere Documentation

Example Projects

aws-sceptremods's People

Contributors

ashleygould avatar

Watchers

 avatar  avatar  avatar

Forkers

ashleygould

aws-sceptremods's Issues

bug in /hooks/acm_certificate.py when "ValidationStatus": "PENDING_VALIDATION"

This hook errors when a requested cert has "ValidationStatus": "PENDING_VALIDATION" when validation was requested by email. The ValidationMethod is not present:

File "/home/agould/git-repos/github/ashleygould/aws-sceptremods/src/sceptremods/hooks/acm_certificate.py", line 70, in run
acm.request_validation(cert, validation_domain, region)
File "/home/agould/git-repos/github/ashleygould/aws-sceptremods/src/sceptremods/util/acm.py", line 153, in request_validation
if validation_options['ValidationMethod'] == 'DNS':
KeyError: 'ValidationMethod'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.