Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the Terraform Projects using Terraform Docs #57

Closed
12 of 16 tasks
chelseybeck opened this issue Mar 2, 2024 · 0 comments · Fixed by #62
Closed
12 of 16 tasks

Document the Terraform Projects using Terraform Docs #57

chelseybeck opened this issue Mar 2, 2024 · 0 comments · Fixed by #62
Assignees
Labels
complexity: medium dependency feature: documentation Project documentation additions or updates role: Dev Ops Engineer Engineer who maintains and deploys software size: 2pt Can be done in 7-12 hours

Comments

@chelseybeck
Copy link
Member

chelseybeck commented Mar 2, 2024

Overview

One of the benefits of infrastructure as code (IaC) is that it is self-documenting. Terraform Docs facilitates easy documentation of resources. Install Terraform Docs and create corresponding files for projects inside of terraform-incubator.

We can expand on the projects to projects not yet in terraform later, if desired, but let's start here.

Action Items

  • Read over the Terraform Docs documentation to understand how the templates are used to generate README.md files
  • Install Terraform Docs on your local machine
  • Create .terraform.docs.yml files for each of the projects in terraform-incubator. If there are subdirectories (i.e. dev, staging), this needs to be added to each subdirectory
    • access-the-data
    • people-depot/project
    • vrms-backend
      • dev
      • prod
      • project
  • Create README.md files for each of the projects in terraform-incubator by changing into the project directory where the terraform files are located and running this command terraform-docs -c .terraform.docs.yml .
    • access-the-data
    • people-depot/project
    • vrms-backend
      • dev
      • prod
      • project

Resources/Instructions

Terraform Docs documentation
Here is an example of Terraform Docs in practice. Note how clear it is now which resources this module creates.

@chelseybeck chelseybeck added complexity: missing This label means the issue is missing a complexity label role: missing feature: missing size: missing role: Dev Ops Engineer Engineer who maintains and deploys software size: 2pt Can be done in 7-12 hours complexity: medium feature: documentation Project documentation additions or updates documentation Improvements or additions to documentation and removed complexity: missing This label means the issue is missing a complexity label role: missing size: missing feature: missing labels Mar 2, 2024
@robinglov robinglov removed the documentation Improvements or additions to documentation label Mar 2, 2024
@chelseybeck chelseybeck changed the title Install Terraform Docs & Create README.md files for terraform-incubator projects Document the Terraform Projects using Terraform Docs Mar 3, 2024
@freaky4wrld freaky4wrld self-assigned this Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: medium dependency feature: documentation Project documentation additions or updates role: Dev Ops Engineer Engineer who maintains and deploys software size: 2pt Can be done in 7-12 hours
Projects
Development

Successfully merging a pull request may close this issue.

3 participants