Skip to content

Commit

Permalink
Fix autodoc CI/CD Errors (#146)
Browse files Browse the repository at this point in the history
* update gitignore
* update autodocs
* disable required module variables for azure
  • Loading branch information
Aaron Steers committed Nov 25, 2020
1 parent c0f9018 commit 94cd6c9
Show file tree
Hide file tree
Showing 28 changed files with 1,397 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
GO111MODULE="on" go get github.com/terraform-docs/terraform-docs@v0.10.0-rc.1
export PATH=$HOME/go/bin:$PATH
pip3 install --pre slalom.dataops
s-infra check_tf_metadata ./catalog \
s-infra check_tf_metadata ./catalog/aws \
--check_module_headers \
--required_input_vars=[name_prefix,resource_tags,environment] \
--required_output_vars=[summary] \
--check_input_descriptions \
--check_output_descriptions \
--raise_error
s-infra check_tf_metadata ./components \
s-infra check_tf_metadata ./components/aws \
--check_module_headers \
--required_input_vars=[name_prefix,resource_tags,environment] \
--required_output_vars=[] \
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,32 @@ plan.out.json
!**/.secrets/*sample*
!**/.secrets/*template*

# .tfstate files
# Terraform local state and lock files
*.tfstate
*.tfstate.*
*.tfstate-*
.terraform.lock.hcl

# tfplan
tfplan

# .tfvars files
*.tfvars

# .vs files
# .vs files
**/.vs/**

# Other (Python)
__pycache__
.mypy_cache
**.pyc
.gitignore

# Terraform executable

terraform
terraform.exe

# Other

.DS_Store
8 changes: 8 additions & 0 deletions autodocs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

_These documents are published automatically to [infra.dataops.tk](https://infra.dataops.tk) using [Github Pages](https://help.github.com/en/github/working-with-github-pages) and [Jekyll](https://jekyllrb.com/docs/)._

## Dependencies

```bash
pip3 install uio logless runnow
brew install terraform-docs
```

## Rebuilding Docs


To rebuild or update all module README docs, run the following command on your dev machine:

```bash
Expand Down
3 changes: 3 additions & 0 deletions autodocs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
logless
runnow
uio
4 changes: 2 additions & 2 deletions catalog/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

191 changes: 191 additions & 0 deletions catalog/aws/bastion-host/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion catalog/aws/bastion-host/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* - Debugging network firewall and routing rules
* - Debugging components which can only be run from whitelisted IP ranges
* - Offloading heavy processing from the developer's local laptop
* - Mitigating network relability issues when working from WiFi or home networks
* - Mitigating network reliability issues when working from WiFi or home networks
*
*/

Expand Down
4 changes: 2 additions & 2 deletions catalog/aws/data-lake-users/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions catalog/aws/ml-ops/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions catalog/aws/singer-taps/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94cd6c9

Please sign in to comment.