Terraform module to create a group of multiple EC2 instances with monitoring. Useful for deploying multiple blockchain nodes.
Install the follow tools to your local machine:
# Terraform
$ brew install terraform
# Terraform lint to enforce best practices in writing Terraform code
# Reference: https://github.com/terraform-linters/tflint
$ brew install tflint
# Trivy for IAC Security scanning
# Reference: https://github.com/aquasecurity/trivy
$ brew install trivy
# Terraform Docs to autogenerate Terraform Module documentation
# Reference: https://terraform-docs.io/user-guide/installation/
$ brew install terraform-docs
# Pre Commit hooks to enforce Terraform Docs generation on every commit
# Reference: https://pre-commit.com/#install
$ brew install pre-commit
On the top right of this repo, click on Use this template
-> Create new repository
. Then fill in the name of the repository with the following format, terraform-<provider_name>-<custom_name>
. Eg. terraform-aws-private-eks
.
$ git clone <your_project_repository>
$ cd <your_project_repository>
# Install pre-commit hooks
$ pre-commit install-hooks
# Make code changes and try to commit. You should see the following output
Terraform fmt............................................................Passed
Terraform validate with tflint...........................................Passed
Terraform validate with trivy............................................Passed
Terraform docs...........................................................Passed
You are all set to go to write your custom Terraform Module! 🚀
Name | Version |
---|---|
terraform | >= 1.0 |
No providers.
No modules.
No resources.
No inputs.
No outputs.