https://github.com/m3dev/m3-terraform-modules
Terraform boilerplate modules
https://github.com/m3dev/m3-terraform-modules
Last synced: 5 months ago
JSON representation
Terraform boilerplate modules
- Host: GitHub
- URL: https://github.com/m3dev/m3-terraform-modules
- Owner: m3dev
- License: mit
- Created: 2019-04-24T05:15:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T01:36:45.000Z (over 1 year ago)
- Last Synced: 2025-06-08T16:03:26.239Z (about 1 year ago)
- Language: HCL
- Size: 57.6 KB
- Stars: 13
- Watchers: 27
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform shared modules
## What is this
This module contains reusable terraform modules to reduce boilerplate code. Mainly for M3 company but anyone can use this under [LICENSE](./LICENSE).
For example, you can setup ECS cluster + AutoScailing with [ecs_ec2_cluster_template](./ecs_ec2_cluster_template), no need to write many terraform for every applications.
## Documents
Look `README.md` and `variables.tf` of each module to know it's detail. For example, [ecs_ec2_cluster_template/README.md](./ecs_ec2_cluster_template/README.md) and [ecs_ec2_cluster_template/variables.tf](./ecs_ec2_cluster_template/variables.tf).
## How to use
You can load this module from [GitHub registry](https://www.terraform.io/docs/modules/sources.html#github).
Only what you need to do is to write following:
```
module "esc_ec2_cluster_template" {
source = "github.com/m3dev/m3-terraform-modules//ecs_ec2_cluster_template?ref=495ff58"
// ... set input variables, see `variables.tf` of the module.
}
```
Note that there are some key points in the `source` URL (see [official document for detail](https://www.terraform.io/docs/modules/sources.html)):
- Use double slash (`//`) to split repository URL and path from repository root
- Use `ref` to specify tag/branch/revision to use