npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-terraform-module

v0.7.0

Published

Scaffolding for your Terraform Module

Downloads

5

Readme

Yeoman

Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive


Generator: Terraform Module

Requirements

In order to run this generator, you will need the following:

  • an up-to-date installation of Yeoman
  • an up-to-date version of this generator

Installation

  • install Yeoman
  • install this generator

To install Yeoman, run the following command in your console:

npm install -g yo bower grunt-cli

This will make Yeoman (via yo) as well as the base dependencies of Yeoman, namely Bower and Grunt available.

Note that you might require sudo permissions to install the above modules globally.

To install this generator, run the following command in your console:

npm install -g generator-terraform-module

Alternatively, you can install the generator directly from Git HEAD by running the following command:

npm install -g https://bitbucket.org/cultivatedops/generator-terraform-module/get/HEAD.tar.gz

Usage

In order to run the included generator, open a console (Terminal.app, PuTTY) and change into the directory you want to generate the module in. Then, run the following command:

yo terraform-module

Should the above command fail, verify that Yeoman does indeed see the generator by executing yo and looking for an entry named "Terraform Module".

On an initial run, you will be asked to provide your full name and email address. These values will be stored for future use.

After all questions have been answered, Yeoman will generate the scaffolding needed to kickstart a Terraform module.

The layout for a generated module will look like so:

.
├── .editorconfig
├── .gitignore
├── .release.json
├── README.md
├── main.tf
├── output.tf
└── variables.tf

The .release.json file is optional and will only be created when Release It! support is enabled during the generation.

The files will be placed in a directory containing the name you provided for the module, prefixed by terraform-module-.

Demo

The following animation shows how the generator looks like, in action:

Demo of the generator in Gif format

Maintainers

This generator is currently maintained by the individuals listed below:

Sponsors

This generator was sponsored by the individuals and companies listed below:

License

generator-terraform-module is licensed under the Apache 2.0 license. A full copy of the license can be found on the apache.org site.

In short, this license permits you to use this product commercially, distribute this software and make modifications.

The software is provided without warranty and any contributors cannot be held liable for damages. You are also not allowed to use any name, logo or trademark without prior consent.