GithubHelp home page GithubHelp logo

mikegron / coveoterraformmodules Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coveo/coveoterraformmodules

0.0 0.0 0.0 25 KB

A selection of Terraform modules we used at Coveo.

License: MIT License

HCL 100.00%

coveoterraformmodules's Introduction

Coveo Terraform modules

A collection of Terraform modules.

Table of content:

Description

This repository is a selection of Terraform modules we used at Coveo. We now support the following modules :

rds_database_cluster

This module creates a RDS Cluster Resource, his RDS Cluster Resource Instance and a RDS DB subnet group ressource. It also store the database username and password into the parameter store by creating two SSM Parameter resource. You have to provide it with minimally a list of subnet_ids, the database master password and a custom_identifier. This module outputs the cluster endpoint which is the DNS address of the RDS instance, the master username, the master password and the port used by the database.

rds_database_instance

This module creates a RDS Instance Resource with a RDS DB subnet group ressource. It also store the database username and password into the parameter store by creating two SSM Parameter resource. You have to provide it with minimally a list of subnet_ids, the master password and a custom_identifier. This module outputs the connection endpoint, the master username, the master password and the port used by the database.

Usage

You can simply import the module you want to use in your terraform infrastructure directly from our github. We recommend using a tag to specify the version of the module you want to use. It will ensure your infrastructure won't stop working when a module is updated. The following example is how you would import the version 0.7 of the rds_database_cluster module in your terraform file.

source = "git::https://github.com/coveo/CoveoTerraformModules.git//rds_database_cluster?ref=v0.7"

Here is a more complete example using the optional parameters map :

locals "optional_parameters" {
  backup_retention_period         = "YOUR RETENTION PERIOD"
  db_subnet_group_name            = "YOUR DB SUBNET GROUP NAME"
  db_cluster_parameter_group_name = "YOUR CLUSTER PARAMETER GROUP NAME"
  db_parameter_group_name         = "YOUR PARAMETER GROUP NAME"
  vpc_id                          = "YOUR VPC ID"
}

module "rds_database_cluster" {
  source = "git::https://github.com/coveo/CoveoTerraformModules.git//rds_database_cluster?ref=v0.7"

  master_password        = "YOUR MASTER PASSWORD"
  subnet_ids             = ["YOUR SUBNET IDS"]
  custom_identifier      = ["A CUSTOM IDENTIFIER"]
  vpc_security_group_ids = ["A VPC SECURITY GROUP ID"]
  availability_zones     = ["AN AVAILABILITY ZONE", "ANOTHER AVAILABILITY ZONE"]
  optional_parameters    = "${locals.optional_parameters}"

  db_tags = {
    "YOUR DB TAGS"
  }
}

coveoterraformmodules's People

Contributors

devsoftweb avatar jmorissette avatar yrivardmulrooney 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.