All Projects → sudokar → Generator Tf Module

sudokar / Generator Tf Module

Licence: mit
Project scaffolding for Terraform

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Generator Tf Module

Terraform Null Ansible
Terraform Module to run ansible playbooks
Stars: ✭ 114 (-10.24%)
Mutual labels:  terraform
Terraform Provider Databricks
Databricks Terraform Provider
Stars: ✭ 119 (-6.3%)
Mutual labels:  terraform
Terraform Provider Google Beta
Terraform Google Cloud Platform Beta provider
Stars: ✭ 123 (-3.15%)
Mutual labels:  terraform
Terraform Plan Parser
Command line utility and JavaScript API for parsing stdout from "terraform plan" and converting it to JSON.
Stars: ✭ 116 (-8.66%)
Mutual labels:  terraform
Config Lint
Command line tool to validate configuration files
Stars: ✭ 118 (-7.09%)
Mutual labels:  terraform
Terraform Provider Grafana
Terraform Grafana provider
Stars: ✭ 118 (-7.09%)
Mutual labels:  terraform
Terraform Provider Zerotier
Create, modify and destroy ZeroTier networks and members through Terraform.
Stars: ✭ 113 (-11.02%)
Mutual labels:  terraform
Docker Hub Images
Automatic builds of container images for Docker Hub
Stars: ✭ 126 (-0.79%)
Mutual labels:  terraform
Terraform Aws Kubernetes
Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more
Stars: ✭ 118 (-7.09%)
Mutual labels:  terraform
Cluster.dev
Kubernetes-based Dev Environments with GitOps
Stars: ✭ 122 (-3.94%)
Mutual labels:  terraform
Terraform Inventory
Terraform State → Ansible Dynamic Inventory
Stars: ✭ 1,591 (+1152.76%)
Mutual labels:  terraform
Terraform Website
Build configuration and partial content for terraform.io
Stars: ✭ 117 (-7.87%)
Mutual labels:  terraform
Terraform
Terraform automation for Cloud
Stars: ✭ 121 (-4.72%)
Mutual labels:  terraform
Hello Lambda
🔥 An example of a Python (AWS) Lambda exposed with API Gateway, configured with Terraform.
Stars: ✭ 114 (-10.24%)
Mutual labels:  terraform
Terraform Aws Eks
Deploy a full EKS cluster with Terraform
Stars: ✭ 125 (-1.57%)
Mutual labels:  terraform
Terraform cashier
Designed to analyze terraform template files and return a cost estimate of running the infrastructure, assuming AWS is the target cloud. Perhaps other clouds can be supported going forward?
Stars: ✭ 113 (-11.02%)
Mutual labels:  terraform
Terraform Provider Template
Terraform template provider
Stars: ✭ 119 (-6.3%)
Mutual labels:  terraform
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (+0%)
Mutual labels:  terraform
Terraform Provider Mongodbatlas
Terraform provider for MongoDB Atlas
Stars: ✭ 126 (-0.79%)
Mutual labels:  terraform
Terraform Aws Key Pair
Terraform Module to Automatically Generate SSH Key Pairs (Public/Private Keys)
Stars: ✭ 121 (-4.72%)
Mutual labels:  terraform

Terraform module generator

npm version npm Docker Stars Docker Pulls Docker Image Version (latest by date)

Scaffolding for new Terraform module projects

Features

  • main.tf, variables.tf,outputs.tf files to module root path

  • .editorconfig, .gitignore, .gitattributes and .terraform-version files to module root path

  • Option to choose test framework

  • test directory with an example test based on test framework selection

  • .pre-commit-config.yaml for terraform fmt, terraform-docs, check-merge-conflict and (go fmt, golint) / rubocop

  • example directory with module usage tf files

Prerequisites

Installation

  • To use generator using Docker, Install Docker recommended
  • To use generator using Nodejs, Install nodejs pro tip: use nvm

Usage

To use the included generator execute the below command in shell and provide your answers to the prompts.

With Docker:
> docker run --rm -it -v $(pwd):/generated -e myuid="$(id -u):$(id -g)" sudokar/generator-tf-module
With NodeJs:
> npx -p yo -p generator-tf-module -c 'yo tf-module'
Prompts:
...
? Enter name for the new terraform module :  example-module
? Enter description for the new terraform module :  Example terraform module
? Enter author name :  sudokar
? Choose terraform version (Use arrow keys)
❯ 0.13
  0.12
  0.11
? Choose test framework (Use arrow keys)
❯ Terratest
  kitchen-terraform

Project layout generated for the new module with Terratest selection

example-module
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .pre-commit-config.yaml
├── .terraform-version
├── README.md
├── main.tf
├── outputs.tf
├── variables.tf
├── example
│   ├── main.tf
│   ├── outputs.tf
│   └── variables.tf
├── test
    └── example_test.go

Project layout generated for the new module with kitchen-terraform selection

example-module
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .pre-commit-config.yaml
├── .terraform-version
├── .ruby-version
├── .kitchen.yml
├── Gemfile
├── README.md
├── main.tf
├── outputs.tf
├── variables.tf
├── example
│   ├── main.tf
│   ├── outputs.tf
│   └── variables.tf
├── test
    └── integration
        └── default
            └── example_spec.rb
Post generation steps

Step 1

On the generated module's root path, Initialize git repository

git init

Step 2

On the generated module's root path, Install pre-commit hooks

pre-commit install

Step 3 (Applicable only for terratest)

For golang tests, get below libs

> go get github.com/gruntwork-io/terratest/modules/terraform
> go get github.com/stretchr/testify/assert

Contribution

Found a bug? feel free to raise an issue.
Pull requests are always welcome. Keen to review and merge asap.

Maintainer

This project is authored and maintained by sudokar

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].