Coder Social home page Coder Social logo

aws-cfn-mongodb's Introduction

MongoDB on AWS using CloudFormation

This repo contains scripts and sample templates to deploy MongoDB to Amazon Web Services using CloudFormation.

Resources

  • Python scripts that build, deploy, test, and package MongoDB for the AWS Marketplace. Instances are configured using documented best practices.
  • templates: (DEPRECATED/BROKEN) Sample CloudFormation templates to bootstrap individual EC2 instances

Usage

Clone the repo:

$ git clone https://github.com/crcsmnky/aws-cfn-mongodb

Install requirements:

$ pip install -r requirements.txt

Run the MongoDB Marketplace AMI Builder:

$ python scripts/build-marketplace-ami.py --iops=1000 --security-group=[groupname] --keypair=[path/to/keypair.pem]

Run the MongoDB Marketplace AMI Cleanup:

$ python scripts/cleanup.py --instance-id=[instance id]

Builder Usage

MongoDB Marketplace AMI Builder

Build, deploy, test, and package MongoDB AMIs for the AWS Marketplace

Usage:
    build-marketplace-ami.py [options] --iops=<iops> --security-group=<group> ... --keypair=<keypath> [--keypair-name=<keyname>]
    build-marketplace-ami.py --help
    build-marketplace-ami.py --version

Arguments:
    --iops=<iops>               1000, 2000, or 4000 IOPS for data volume
    --security-group=<group>    Security group name for instance (use multiple times for multiple groups)
    --keypair=<keypath>         Path to keypair used to setup this instance
    --keypair-name=<keyname>    Name of keypair used to setup this instance (optional, defaults to basename of keypath)

Options:
    -h --help                   Show help
    --version                   Show version
    --enterprise                (BROKEN) Builds Marketplace AMI with MongoDB Enterprise
    --save-template             Saves the generated CloudFormation template to a file
    --skip-tests                Skipds running Fabric tests
    --skip-package              Skips packaging as AMI


What This Script Does:
    build    ## builds CF template, returns template json
    deploy   ## deploys CF template, returns AWS CloudFormation StackId
    test     ## tests MongoDB EC2 instance, returns test output
    package  ## packages MongoDB AMI, returns AMI Id

Notes

  • Templates are broken! Do not use!

aws-cfn-mongodb's People

Contributors

crcsmnky avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

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.