Skip to content

Generate documentation from Terraform modules in various output formats

License

Notifications You must be signed in to change notification settings

LeComptoirDesPharmacies/terraform-docs

 
 

Repository files navigation

terraform-docs

CircleCI Go Report Card

A utility to generate documentation from Terraform modules in various output formats.

terraform-docs-teaser

Table of Contents

Maintenance

This project is no longer maintained by Segment. Instead, Martin Etmajer, unaffiliated with Segment, from GetCloudnative, is maintaining the project with help from these awesome contributors.

Installation

The latest version can be installed using go get:

go get github.com/segmentio/terraform-docs

If you are a Mac OS X user, you can use Homebrew:

brew install terraform-docs

For other platforms, please have a look at our binary releases.

Code Completion

The code completion for bash or zsh can be installed using:

source <(terraform-docs completion bash)

or

source <(terraform-docs completion zsh)

To make this change permenant, the above command can be added to you ~/.profile.

Getting Started

Show help information:

terraform-docs --help

Generate JSON from the Terraform configuration in folder ./examples:

terraform-docs json ./examples

Generate Markdown tables from the Terraform configuration in folder ./examples:

terraform-docs markdown table ./examples

Generate a Markdown document from the Terraform configuration in folder ./examples:

terraform-docs markdown document ./examples

Development Requirements

License

MIT License

Copyright (c) 2018 The terraform-docs Authors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Generate documentation from Terraform modules in various output formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 83.8%
  • Makefile 7.2%
  • Shell 6.4%
  • Ruby 2.6%