Skip to content

peak-ai/terraform-modules

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.