Code Docs

Introduction

Welcome to the documentation for Algebananazzzzz-Terraform-Modules, an open source Terraform module repository used by the Polymer framework.

Current Version

The latest stable version is v1.0.0

Usage

Using Git Submodules (recommended)

Submodules allow you to include or embed one or more repositories as a sub-folder inside another repository. This allows you to include the Terraform modules within a folder in your project directory.

Adding Submodules

git submodule add -b v1.0.0 <https://github.com/algebananazzzzz/Algebananazzzzz-Terraform-Modules.git> modules/

Updating Submodules

git submodule update --init --recursive

Usage within Terraform Module blocks

You can then reference the modules using its relative path within the project directory. Remember to run terraform init to initialise the modules.

module "lambda_function" {
  source = "./modules/lambda_function"
	...
	...
}

Using Source Attribute

Alternatively, you can reference the github repository directly. Remember to run terraform init to initialize the modules.

module "lambda_function" {
  source = "github.com/algebananazzzzz/Algebananazzzzz-Terraform-Modules/lambda_function?ref=v1.0.0"
	...
	...
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Table of Contents