GithubHelp home page GithubHelp logo

peak-ai / terraform-modules Goto Github PK

View Code? Open in Web Editor NEW
16.0 6.0 7.0 323 KB

Terraform Modules by Peak

License: GNU Lesser General Public License v2.1

HCL 100.00%
terraform-modules terraform hcl aws kubernetes iac infrastructure-as-code terraform-configurations peak s3

terraform-modules's Introduction

Peak

Terraform-modules

Build stable

This repo list some open to use Terraform modules we use at Peak AI because we โค๏ธ IAC(Infrastucture as Code) and Terraform modules are a great way to write reusable Infra.

List of avilable modules

Example usage

There are two approaches to import and use modules in this repo.

Using specific revision (recommended approach)

Blueprint

module "<name_you_want_to_give_to_this_module>" {
    source  = "git::https://github.com/peak-ai/terraform-modules//<name_of_folder/module_to_use>?ref=<github_tag/release/commit>"
    .
    .
    .
    # Add inputs here you want to overwrite
}

Example

module "tags" {
    source  = "git::https://github.com/peak-ai/terraform-modules//tags?ref=v0.1.0"
    stage   = "latest"
    feature = "example"
    service = "example"
}

Importing latest version (Use this approach at your own risk as there can be breaking changes)

Blueprint

module "<name_you_want_to_give_to_this_module>" {
    source  = "git::https://github.com/peak-ai/terraform-modules.git//<name_of_folder/module_to_use>"
    .
    .
    .
    # Add inputs here you want to overwrite
}

Example

module "tags" {
    source  = "git::https://github.com/peak-ai/terraform-modules.git//tags"
    stage   = "latest"
    feature = "example"
    service = "example"
}

Contributing

Despite being primarily maintained by Peak, we welcome and appreciate any contributions from the community! Please see the contribution guidelines for more info.

terraform-modules's People

Contributors

azhar22k avatar fastboot avatar leebates81 avatar pancham97 avatar pearcem0 avatar rickihastings avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

terraform-modules's Issues

add Security Group IDs to the DAX module

Is your feature request related to a problem? Please describe.

When I tried to create a new cluster using the DAX module, I could not create and attach a Security Group with the cluster.

Describe the solution you'd like

I would like to have the capability for the DAX module to accept a list of Security Group IDs that could be attached to the cluster.

Describe alternatives you've considered

I observed that I could not modify the Security Group post-creation of the cluster. So, this felt like an appropriate solution to the problem.

Additional context
Add any other context or screenshots about the feature request here.

Predefined tags to refer terraform

Is your feature request related to a problem? Please describe.
While migrating from Cloud formation to Terraform, one thing we face is default tagging. Like AWS CF adds some default which tells us that which CF stack the resource belongs to. Currently the tags module do not cover this.

Describe the solution you'd like
Solution will be to have a predefined tags which tells us that the resource was created via Terraform and maybe a info about which workspace it belongs to

Describe alternatives you've considered
Currently we the use merge to achieve this.
Example

module "tags" {
    source  = "git::https://github.com/peak-ai/terraform-modules.git//tags?ref=v0.1.0"
    tenant  = "new-client"
    stage   = "latest"
    feature = "example"
    service = "example"
}

provider "aws" {
    version = "~> 2.62"
}

locals {
   default_tags = {
      terraform_resource     = true
      terraform_workspace    = terraform.workspace
      
   }
}

resource "aws_s3_bucket" "example" {
  bucket = "example"
  tags   = merge(module.tags.default, local.default_tags)
}

Additional context
It will nice to have such behaviour by default

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.