terraform-modules icon indicating copy to clipboard operation
terraform-modules copied to clipboard

Terraform Modules by Peak

Peak

Terraform-modules

Build stable

This repo list some open to use Terraform modules we use at Peak AI because we :heart: IAC(Infrastucture as Code) and Terraform modules are a great way to write reusable Infra.

List of avilable modules

  • :construction: Docker Builder
  • :camera: ECR
  • ☸ K8S_IRSA
  • :open_file_folder: S3
  • :oil_drum: Dax
  • :bookmark: Tags (aka Labels)

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.