Skip to content

Shared terraform modules for use across projects

Notifications You must be signed in to change notification settings

UmarTayyab/terraform

 
 

Repository files navigation

DBL Terraform Modules

We create modules here for re-use between projects.

Modules

  • certificate - Requests a certificate from the Amazon Certificate Manager.
  • cognito - Create user pools for use with authentication.
  • ecr - A reopsitory for storing built docker images.
  • ecs - Compute cluster for running docker containers.
  • elasticache - elasticache cluster based on Redis.
  • kms-key - Encryption keys for securing various AWS resources.
  • nat - A reopsitory for setting up a network address translation (NAT).
  • rds - Used for creating and configuring databases and their networking.
  • s3-private - Private, encrypted S3 bucket with versioning.
  • s3-public - S3 bucket to host public files such as a frontend app, or anything you want to servce via a CDN.
  • secrets - Used for creating a new secret.
  • vpc - Creates a VPC in AWS account. Also generates a group fo public and private submodules.
  • vpn - Launches an isolated Outline VPN inside a new VPC.

Conventions

  • Use project + environment combination for a workspace/module context
  • Use main for core resource identifiers. e.g. resource "aws_rds_instance" "main" {}

Usage

Refer to specific module README for variables and recommended usage.

module "awesome-module" {
  source = "github.com/dbl-works/terraform//awesome-module?ref=v2021.07.05"

  # Required
  environment = "staging"
  project     = "someproject"

  # Optional
  some_variable = "some_value"
}

About

Shared terraform modules for use across projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%