Code Monkey home page Code Monkey logo

aws-cloudformation's Introduction

AWS CloudFormation

This repo contains an AWS CloudFormation template to deploy YugabyteDB cluster on AWS. It does the following:

  • Creates a VPC with three public subnets
  • Creates an instance in each subnet
    • Note that the instances that get created use Amazon Linux 1 as the OS.
  • Deploys a YugabyteDB cluster across these three nodes

Pre-Flight Checks

  • Make sure that the selected region has three or more AZs.
    • This allows this template creates 3 public subnets in three different availability zone.
  • Make sure your AZ supports the instance type specified.
  • As of now, the following regions are supported by this template:
    • EU (Ireland)
    • EU (London)
    • EU (Paris)
    • EU (Frankfurt)
    • Asia Pacific (Tokyo)
    • Asia Pacific (Sydney)
    • US East (N. Virginia)
    • Asia Pacific (Singapore)
    • Asia Pacific (Mumbai)
    • US West (Oregon)
    • US East (Ohio)

Usage

Launch Stack

Deploying From AWS Command Line

  • Clone this repo.
    $ git clone https://github.com/yugabyte/aws-cloudformation.git 
    
  • Change current directory to cloned git repo directory
  • Use aws cli to create cloudformation template
    aws cloudformation create-stack                                             \
            --stack-name <your-stack-name>                                      \
            --template-body file://yugabyte_cloudformation.yaml                 \
            --parameters ParameterKey=DBVersion,ParameterValue=2.20.2.0-b175    \
                         ParameterKey=KeyName,ParameterValue=<you-ssh-key-name>
    
  • Wait until the creation of all resources is complete.
  • Once the cloudformation stack creation is complete, you can describe it as shown below.
    $ aws cloudformation describe-stacks --stack-name <your-stack-name>
    
    In output you will get the VPC id and YugabyteDB admin URL.

Deploying From AWS console

  • Clone this repo.
    $ git clone https://github.com/yugabyte/aws-cloudformation.git 
    
  • Login to aws console and navigate to CloudFormation service dashboard.
  • Click on create stack button.
  • Select Template is ready in prepare template section.
  • Select Upload a template file in specify template section.
  • Click choose file button in specify template section and upload the yugabyte_cloudforamtion.yaml file. Click on the next button.
  • Specify your stack name and parameters for the stack. Click on next.
  • Add a tag to your stack and choose IAM role if required. Click on next.
  • Review the CloudFormation stack. If everything looks good, click on create stack button.
  • Once stack creation gets compleated, you can access the YugabyteDB admin from URL you get in the stack output section.

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.