Terraform Modules
This is a collection of reusable Terraform Modules. In this library you'll find real-world examples of how we've implemented reusable Terraform Modules.
aws (4)
This is an example project to provide all the scaffolding for a typical well-built Cloud Posse Terraform module for AWS resources. It's a template repository you can use when creating new repositories. This is not a useful module by itself.
module (1)
This is an test project.
[!IMPORTANT] This repository is for experiementation
provider (1)
Terrform provider for managing a context in Terraform. A context, in this case, is a set of key-value pairs that can be used to enable or disable a module, as well as generating consistent resource names and tags for cloud resources.
spacelift (1)
This repo contains a set of Terraform modules for implementing a CI/CD pipeline for Terraform infrastructure using Spacelift.
- spacelift-policy - Terraform module for creating Spacelift policies.
- spacelift-space - Terraform module for creating Spacelift spaces.
- spacelift-stack - Terraform module for creating Spacelift stacks.
- spacelift-stacks-from-atmos-config - Terraform module for extracting Spacelift stack config from Atmos config.
terraform (1)
Terraform module designed to generate consistent label names and tags for resources. Use terraform-terraform-label
to implement a strict naming convention.
terraform-terraform-label
is a fork of terraform-null-label which uses only the core Terraform provider.
A label follows the following convention: {namespace}-{stage}-{name}-{attributes}
. The delimiter (e.g. -
) is interchangeable.It's recommended to use one terraform-terraform-label
module for every unique resource of a given resource type.
For example, if you have 10 instances, there should be 10 different labels.
However, if you have multiple different kinds of resources (e.g. instances, security groups, file systems, and elastic IPs), then they can all share the same label assuming they are logically related.All Cloud Posse modules use
the related terraform-null-label module to ensure resources can be instantiated multiple times within an account and without conflict.NOTE: The second terraform
word in terraform-terraform-label
refers to the primary Terraform provider used in this module.