Code Monkey home page Code Monkey logo

sceptre-wordpress-example's Introduction

Sceptre Wordpress

Meetup Munich

Sceptre is a tool to drive AWS CloudFormation. It automates away some of the more mundane, repetitive and error-prone tasks, allowing you to concentrate on building better infrastructure.

Sceptre's source code can be found here.

Features:

  • Code reusability by separating a stack's template and its configuration
  • Support for templates written in JSON, YAML or Python DSLs such as Troposphere
  • Dependency resolution by passing of stack outputs to parameters of dependent stacks
  • Environment support by bundling related stacks into logical groups (e.g. dev and prod)
  • Environment-level commands, such as creating multiple stacks with a single command
  • Fast, highly parallelised builds
  • Built in support for working with stacks in multiple AWS accounts
  • Infrastructure visibility with meta-operations such as stack querying protection
  • Support for inserting dynamic values in templates via customisable resolvers
  • Support for running arbitrary code as hooks before/after stack builds

Code

Sceptre organises stacks into environments. Each stack is represented by a YAML configuration file stored in a directory which represents the environment. Here, we have two environments, prod and dev

$ tree
.
├── LICENSE
├── NOTICE
├── README.rst
├── config
│   ├── config.yaml
│   ├── dev
│   │   ├── config.yaml
│   │   ├── efs.yaml
│   │   ├── rds.yaml
│   │   ├── role.yaml
│   │   ├── security-groups.yaml
│   │   ├── vpc.yaml
│   │   └── wordpress.yaml
│   └── prod
│       ├── config.yaml
│       ├── efs.yaml
│       ├── rds.yaml
│       ├── security-groups.yaml
│       ├── vpc.yaml
│       └── wordpress.yaml
└── src
    ├── base.py
    ├── constants.py
    ├── efs.py
    ├── rds.py
    ├── role.py
    ├── security_groups.py
    ├── vpc.py
    └── wordpress.py

Diagram

diagram.jpg

Install

$ pip install sceptre

More information on installing sceptre can be found in our Installation Guide.

How to start

Sceptre can be used from the CLI, or imported as a Python package.:

$ git clone [email protected]:cloudreach/sceptre-wordpress-example.git
$ cd sceptre-wordpress-example

Be sure your AWS credential are properly configured

How to deploy dev and prod

$ sceptre launch dev
$ sceptre launch prod

How to apply a change-set on dev for wordpress stack

$ sceptre create dev wordpress
$ sceptre execute dev wordpress

Tutorial and Documentation

License

sceptre is licensed under the Apache Software License 2.0.

Thanks

Intelligent Cloud Adoption.

sceptre-wordpress-example's People

Contributors

giuliocalzolari avatar nunogrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sceptre-wordpress-example's Issues

Which version of sceptre is this?

➜ sceptre-wordpress-example git:(master) sceptre --version
Sceptre, version 2.1.5
➜ sceptre-wordpress-example git:(master) sceptre launch-env prod
Usage: sceptre [OPTIONS] COMMAND [ARGS]...
Try "sceptre --help" for help.

Error: No such command "launch-env".

Not working

I am a newby to Sceptre and tried out the very basic VPC setup, which worked. Then I found this, which seemed to take it to the next level — I thought once I got this working this would be fantastic I can just customise it to my requirements. However, I am obviously missing something. The readme seems out of date or inaccurate, so I wondered if someone can help.

sceptre launch-env dev
Usage: sceptre [OPTIONS] COMMAND [ARGS]...
Try 'sceptre --help' for help.

Error: No such command 'launch-env'.

So I tried guessing:

sceptre launch dev
"prod/security-groups: Dependency vpc not found. Valid dependency names are: prod/vpc.yaml, prod/security-groups.yaml, prod/efs.yaml, dev/efs.yaml, dev/rds.yaml, dev/security-groups.yaml, prod/wordpress.yaml, prod/rds.yaml, dev/wordpress.yaml, dev/role.yaml, dev/vpc.yaml. Please make sure that your dependencies stack_outputs have their full path from `config` defined."

Not sure why, but it doesn’t seem to recognise the .py templates, even though I have troposphere installed and it appears to be called correctly although I am no expert.

Is it just the readme is not up-to-date, or have I missed something?

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.