-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples after v0.11.2 release
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
- Loading branch information
Showing
11 changed files
with
236 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# http://editorconfig.org | ||
|
||
# this file is the top-most editorconfig file | ||
root = true | ||
|
||
# all files | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.tf] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,41 @@ | ||
# Test tf11 extra args | ||
|
||
## Input | ||
|
||
```yaml | ||
- name: Should generate USAGE.md for tf11_extra_args | ||
uses: ./ | ||
with: | ||
working-dir: examples/tf11_extra_args | ||
output-format: markdown document | ||
output-method: replace | ||
args: --sensitive=false --hide requirements --required=false | ||
indention: 3 | ||
``` | ||
## Verify | ||
- Creates a document instead of table | ||
- Indents the "##" by 3 instead of 2 ie: "###" | ||
- Should not show required fields | ||
- Should replace USAGE.md | ||
## Usage | ||
See USAGE.md | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| aws | < 2.2.0 | | ||
| consul | >= 1.0.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| aws | < 2.2.0 | | ||
| consul | >= 1.0.0 | | ||
|
||
## Modules | ||
|
||
No Modules. | ||
|
||
## Resources | ||
|
||
| Name | | ||
|------| | ||
| [aws_acm_certificate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/acm_certificate) | | ||
| [consul_key](https://registry.terraform.io/providers/hashicorp/consul/latest/docs/data-sources/key) | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| extra\_environment | List of additional environment variables | `list` | `[]` | no | | ||
| extra\_tags | Additional tags | `map` | `{}` | no | | ||
| instance\_count | Number of instances to create | `string` | `"1"` | no | | ||
| instance\_name | Instance name prefix | `string` | `"test-"` | no | | ||
| subnet\_ids | A list of subnet ids to use | `list` | n/a | yes | | ||
| vpc\_id | The id of the vpc | `string` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| vpc\_id | The Id of the VPC | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,64 @@ | ||
# Test tf12 Atlantis | ||
|
||
## Input | ||
|
||
```yaml | ||
- name: Should generate README.md for tf12_atlantis | ||
uses: ./ | ||
with: | ||
atlantis-file: atlantis.yaml | ||
output-file: README.md | ||
args: --hide providers | ||
indention: 3 | ||
``` | ||
## Verify | ||
- Should inject below Usage in README.md | ||
- Should not show providers section | ||
## Usage | ||
<!--- BEGIN_TF_DOCS ---> | ||
### Requirements | ||
| Name | Version | | ||
|------|---------| | ||
| aws | ~> 2.20.0 | | ||
| consul | >= 2.4.0 | | ||
### Inputs | ||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| extra\_environment | List of additional environment variables | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no | | ||
| extra\_tags | Additional tags | `map(string)` | `{}` | no | | ||
| instance\_count | Number of instances to create | `number` | `1` | no | | ||
| instance\_name | Instance name prefix | `string` | `"test-"` | no | | ||
| subnet\_ids | A list of subnet ids to use | `list(string)` | n/a | yes | | ||
| vpc\_id | The id of the vpc | `string` | n/a | yes | | ||
|
||
### Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| vpc\_id | The Id of the VPC | | ||
|
||
<!--- END_TF_DOCS ---> | ||
# Test tf12 Atlantis | ||
|
||
## Input | ||
|
||
```yaml | ||
- name: Should generate README.md for tf12_atlantis | ||
uses: ./ | ||
with: | ||
atlantis-file: atlantis.yaml | ||
output-file: README.md | ||
args: --hide providers | ||
indention: 3 | ||
``` | ||
## Verify | ||
- Should inject below Usage in README.md | ||
- Should not show providers section | ||
## Usage | ||
<!--- BEGIN_TF_DOCS ---> | ||
### Requirements | ||
| Name | Version | | ||
|------|---------| | ||
| aws | ~> 2.20.0 | | ||
| consul | >= 2.4.0 | | ||
### Providers | ||
| Name | Version | | ||
|------|---------| | ||
| aws | ~> 2.20.0 | | ||
| consul | >= 2.4.0 | | ||
### Modules | ||
No Modules. | ||
### Resources | ||
| Name | | ||
|------| | ||
| [aws_acm_certificate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/acm_certificate) | | ||
| [consul_key](https://registry.terraform.io/providers/hashicorp/consul/latest/docs/data-sources/key) | | ||
### Inputs | ||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| extra\_environment | List of additional environment variables | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `[]` | no | | ||
| extra\_tags | Additional tags | `map(string)` | `{}` | no | | ||
| instance\_count | Number of instances to create | `number` | `1` | no | | ||
| instance\_name | Instance name prefix | `string` | `"test-"` | no | | ||
| subnet\_ids | A list of subnet ids to use | `list(string)` | n/a | yes | | ||
| vpc\_id | The id of the vpc | `string` | n/a | yes | | ||
|
||
### Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| vpc\_id | The Id of the VPC | | ||
<!--- END_TF_DOCS ---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.