Skip to content

Commit

Permalink
Merge pull request #6 from Think-Cube/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
spy86 committed Apr 22, 2024
2 parents 8009190 + c9be1ca commit 1446ab6
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 65 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
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
<!-- 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_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/3.94.0/docs/resources/resource_group) | 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.100.0/docs/resources/resource_group) | resource |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/3.100.0/docs/data-sources/client_config) | data source |

## Inputs
#### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
Expand All @@ -33,7 +29,7 @@ No modules.
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. | `string` | `"West Europe"` | no |
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. | `string` | n/a | yes |

## Outputs
#### Outputs

| Name | Description |
|------|-------------|
Expand Down
4 changes: 2 additions & 2 deletions backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.94.0"
version = "3.100.0"
}
}
required_version = ">= 1.6.4"
}
}
50 changes: 0 additions & 50 deletions examples/resource-group/README.md

This file was deleted.

0 comments on commit 1446ab6

Please sign in to comment.