Skip to content

Commit

Permalink
Merge pull request #8 from Think-Cube/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
spy86 authored Apr 23, 2024
2 parents 50b92d9 + f51bd83 commit 012abec
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 87 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Generate terraform docs
on:
- pull_request
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render terraform docs inside the README.md and push changes back to PR branch
uses: terraform-docs/[email protected]
with:
github-token: ${{ secrets.GH_TOKEN }}
working-dir: .
output-file: README.md
output-method: replace
config-file: .terraform-docs.yml
git-push: "true"
40 changes: 40 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .terraform-docs.yaml
formatter: toml # this is required

version: ""

header-from: main.tf
footer-from: "variables.tf"


content: ""

output:
file: README.md # output-file
mode: replace
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->
output-values:
enabled: false
from: ""

sort:
enabled: true
by: name

settings:
anchor: true
color: true
default: true
description: false
escape: true
hide-empty: true
html: true
indent: 4
lockfile: true
required: true
sensitive: true
type: true
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
<!-- BEGIN_TF_DOCS -->
## Requirements
#### Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.4 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 3.94.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 3.100.0 |

## Providers
#### Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.94.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.100.0 |

## Modules

No modules.

## Resources
#### Resources

| Name | Type |
|------|------|
| [azurerm_route_table.main](https://registry.terraform.io/providers/hashicorp/azurerm/3.94.0/docs/resources/route_table) | resource |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/3.94.0/docs/data-sources/client_config) | data source |
| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/3.94.0/docs/data-sources/resource_group) | data source |
| [azurerm_route_table.main](https://registry.terraform.io/providers/hashicorp/azurerm/3.100.0/docs/resources/route_table) | resource |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/3.100.0/docs/data-sources/client_config) | data source |
| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/3.100.0/docs/data-sources/resource_group) | data source |

## Inputs
#### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
Expand All @@ -37,7 +33,7 @@ No modules.
| <a name="input_route_table_disable_bgp_route_propagation"></a> [route\_table\_disable\_bgp\_route\_propagation](#input\_route\_table\_disable\_bgp\_route\_propagation) | Boolean flag which controls propagation of routes learned by BGP on that route table. True means disable. | `bool` | `true` | no |
| <a name="input_route_table_name"></a> [route\_table\_name](#input\_route\_table\_name) | The name of the route table. Changing this forces a new resource to be created. | `string` | n/a | yes |

## Outputs
#### Outputs

| Name | Description |
|------|-------------|
Expand Down
6 changes: 3 additions & 3 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.94.0"
source = "hashicorp/azurerm"
version = "3.100.0"
}
}
required_version = ">= 1.6.4"
}
}
70 changes: 0 additions & 70 deletions examples/route-table/README.md

This file was deleted.

0 comments on commit 012abec

Please sign in to comment.