Code Monkey home page Code Monkey logo

aws-ha-drupal's Introduction

Scalable Drupal

Welcome to the HPAC Production Drupal github repository. This repository contains the cloudformation and scripts need Please see the wiki located at

for all current documentation.

Quickstart

To use this repo, start off by setting the needed parameters for the CloudFormation template in your environment, for example to set the SSH key name to use, the parameter is named KeyName, so set environment

$> export KeyName=my-key

In particular, you'll need to set at a minimum the following parameters:

  • Label
  • KeyName
  • SitePassword
  • DBPassword

Then when ready, you can start the CloudFormation stack using the deploy script

$> ./deploy create-stack

If there are missing parameters, set them as environment variables, and then start again. The script will also leave a copy of the generated cloudformation template in the current directory named template.json.

To see the list of known parameters, you can use the helper script

$> ./bin/find_cf_params ./resources/cf.json

The helper tools need python 2.7 (which is also a requirement for the AWS cli tools)

Details

The contained scripts make it easier to maintain the deplyoment process by separating the cloud-init bash script (or whatever valid cloud-init format) from the CloudFormation JSON. The main CloudFormation template is in resources/cf.json and the user-data script for cloud-init is in resources/user-data.

The CF template creates a file on instances named /etc/cloud-env.sh which contains all the needed parameters and values for configuring the host. The script can then source /etc/cloud-env.sh to get all these values imported for configuring the system.

There are three helper utilities in bin/

  • find_cf_params : given a cloudformation template, prints out the Parameter names
  • gen_cf_json : takes a cloudformation and a user-data script, and injects the script into the specified LaunchConfiguration
  • pprint_json pretty prints out the CF json (or any JSON)

aws-ha-drupal's People

Contributors

robparrott avatar robruma avatar stephenmartino avatar rjhicks41 avatar jfanton1 avatar bbroady avatar

Stargazers

Roshan Pradeep avatar Ben Tomasik avatar Damon Haley avatar Erick Guevara avatar  avatar  avatar elliot moore avatar  avatar Jonathan Le avatar Lakshminp avatar

Watchers

Seth Gregory avatar Michele Clamp avatar Bob Treacy avatar James Cloos avatar Ventz Petkov avatar  avatar Alaric Hartmann avatar Steve Shannon avatar Arthur Barrett avatar JaZahn Clevenger avatar Thomas Fline avatar  avatar Michael D. Hilborn avatar Rebecca Dornin avatar Luke Sullivan avatar  avatar  avatar  avatar  avatar Michael Kerry avatar Greg Roy avatar  avatar  avatar Everett Daviage avatar  avatar  avatar

aws-ha-drupal's Issues

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.