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 Modules using Terraform Docs #59

Closed
39 of 40 tasks
chelseybeck opened this issue Mar 3, 2024 · 2 comments · Fixed by #63
Closed
39 of 40 tasks

Document the Terraform Modules using Terraform Docs #59

chelseybeck opened this issue Mar 3, 2024 · 2 comments · Fixed by #63
Assignees
Labels
complexity: medium 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 3, 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 modules inside of terraform-modules.

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 modules in terraform-modules.
    • acm
    • applicationlb
    • bastion
    • cheap-secrets
    • cicd_integration
    • database
    • ecr
    • ecs-task
    • ecs
    • multi-container-service
    • multi-tenant-database
    • network
    • private-dns
    • project-zone
    • r53
    • rds
    • redis
    • service
  • 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 .
    • acm
    • applicationlb
    • bastion
    • cheap-secrets
    • cicd_integration
    • database
    • ecr
    • ecs-task
    • ecs
    • multi-container-service
    • multi-tenant-database
    • network
    • private-dns
    • project-zone
    • r53
    • rds
    • redis
    • service

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 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 size: 3pt Can be done in 13-18 hours and removed size: 2pt Can be done in 7-12 hours size: 3pt Can be done in 13-18 hours labels Mar 3, 2024
@chelseybeck
Copy link
Member Author

This issue can (and maybe should?) be split between two people

@robinglov
Copy link
Member

Does having one issue for the README.md and one for the .terraform.docs.yml make sense as a split?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: medium 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