Code Monkey home page Code Monkey logo

yb-platform-tf-ansible's Introduction

yb-platform-tf-ansible

A GCP Terraform module to deploy and manage the Yugabyte data platform(ybdp)

Pre-requisites

Following IAM roles are required for the Service Account

  • Compute Admin
  • DNS Administrator
  • Service Account Admin
  • Service Account User

You need to install terraform and ansible cli in your local env.

  • terraform installed
  • ansible installed

Initialization

  • Clone this repo to the local workstation
$ git clone https://github.com/ssung-yugabyte/yb-plaform-tf-ansible.git
  • Change directory to the cloned repo
$ cd yb-platform-tf-ansible
  • Create terraform.tfvars file with the following info populated (or update sample.terraform.tfvars file appropriately and rename it to terraform.tfvars)
-----------------------------------------------mandatory inputs-----------------------------------------------
# GCP project info
project         = "# gcp project id"
control_name    = "# ybdp control plane name"
credentials     = "# gcp service account credential file path"

# ssh keys to connect to the bastion and replicated instances
ssh_private_key = "# ssh private key file path"
ssh_public_key  = "# ssh public key file path"
ssh_user        = "# ssh user name

Usage

  • Run terraform init to initialize the modules dependencies
$ terraform init
  • Generate the terraform plan to understand the changes
$ terraform plan -out=plan
  • Run the following to apply the changes
$ terraform apply plan
  • Run the following the fetch the values from the terraform run
$ terraform output <output_variable>
  • To destroy the provisioned resources,
$ terraform destroy

Managed Resources

This terraform-module manages the following GCP resources

  • vpc
  • subnets
  • hosted zone
  • compute instances
  • firewall

yb-platform-tf-ansible's People

Contributors

ssung-yugabyte 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.