From 392b5123576f6da475183b052667979c1dab89b4 Mon Sep 17 00:00:00 2001 From: Sergey Novikov Date: Mon, 24 Feb 2025 15:28:20 +0100 Subject: [PATCH 1/3] Add latest versions of tf-docs --- .github/workflows/params.yml | 3 ++ README.md | 61 +++++++++++++++++++----------------- 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/workflows/params.yml b/.github/workflows/params.yml index 6f72218..761db9c 100644 --- a/.github/workflows/params.yml +++ b/.github/workflows/params.yml @@ -16,6 +16,9 @@ env: "NAME": "tfdocs", "VERSION": [ "latest", + "0.19.0", + "0.18.0", + "0.17.0", "0.16.0", "0.15.0", "0.14.1", diff --git a/README.md b/README.md index d2d0f38..f947738 100644 --- a/README.md +++ b/README.md @@ -64,35 +64,38 @@ The following Docker image tags are rolling releases and are built and updated e [![nightly](https://github.com/cytopia/docker-terraform-docs/workflows/nightly/badge.svg)](https://github.com/cytopia/docker-terraform-docs/actions?query=workflow%3Anightly) -| Docker Tag | Git Ref | Terraform Docs | Available Architectures | -|----------------------|-----------|--------------|----------------------------------------------| -| `latest` | master | latest | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.16.0` | master | **`0.16.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.15.0` | master | **`0.15.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.14.1` | master | **`0.14.1`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.14.0` | master | **`0.14.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.13.0` | master | **`0.13.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.12.1` | master | **`0.12.1`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.12.0` | master | **`0.12.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | -| `0.11.2` | master | **`0.11.2`** | `amd64` | -| `0.11.1` | master | **`0.11.1`** | `amd64` | -| `0.11.0` | master | **`0.11.0`** | `amd64` | -| `0.10.1` | master | **`0.10.1`** | `amd64` | -| `0.10.0` | master | **`0.10.0`** | `amd64` | -| `0.9.1` | master | **`0.9.1`** | `amd64` | -| `0.9.0` | master | **`0.9.0`** | `amd64` | -| `0.8.2` | master | **`0.8.2`** | `amd64` | -| `0.8.1` | master | **`0.8.1`** | `amd64` | -| `0.8.0` | master | **`0.8.0`** | `amd64` | -| `0.7.0` | master | **`0.7.0`** | `amd64` | -| `0.6.0` | master | **`0.6.0`** | `amd64` | -| `0.5.0` | master | **`0.5.0`** | `amd64` | -| `0.4.5` | master | **`0.4.5`** | `amd64` | -| `0.4.0` | master | **`0.4.0`** | `amd64` | -| `0.3.0` | master | **`0.3.0`** | `amd64` | -| `0.2.0` | master | **`0.2.0`** | `amd64` | -| `0.1.1` | master | **`0.1.1`** | `amd64` | -| `0.1.0` | master | **`0.1.0`** | `amd64` | +| Docker Tag | Git Ref | Terraform Docs | Available Architectures | +|------------|-----------|----------------|----------------------------------------------| +| `latest` | master | latest | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.19.0` | master | **`0.19.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.18.0` | master | **`0.18.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.17.0` | master | **`0.17.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.16.0` | master | **`0.16.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.15.0` | master | **`0.15.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.14.1` | master | **`0.14.1`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.14.0` | master | **`0.14.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.13.0` | master | **`0.13.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.12.1` | master | **`0.12.1`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.12.0` | master | **`0.12.0`** | `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6` | +| `0.11.2` | master | **`0.11.2`** | `amd64` | +| `0.11.1` | master | **`0.11.1`** | `amd64` | +| `0.11.0` | master | **`0.11.0`** | `amd64` | +| `0.10.1` | master | **`0.10.1`** | `amd64` | +| `0.10.0` | master | **`0.10.0`** | `amd64` | +| `0.9.1` | master | **`0.9.1`** | `amd64` | +| `0.9.0` | master | **`0.9.0`** | `amd64` | +| `0.8.2` | master | **`0.8.2`** | `amd64` | +| `0.8.1` | master | **`0.8.1`** | `amd64` | +| `0.8.0` | master | **`0.8.0`** | `amd64` | +| `0.7.0` | master | **`0.7.0`** | `amd64` | +| `0.6.0` | master | **`0.6.0`** | `amd64` | +| `0.5.0` | master | **`0.5.0`** | `amd64` | +| `0.4.5` | master | **`0.4.5`** | `amd64` | +| `0.4.0` | master | **`0.4.0`** | `amd64` | +| `0.3.0` | master | **`0.3.0`** | `amd64` | +| `0.2.0` | master | **`0.2.0`** | `amd64` | +| `0.1.1` | master | **`0.1.1`** | `amd64` | +| `0.1.0` | master | **`0.1.0`** | `amd64` | #### Point in time releases From c109f20e62b6cfaad4417db269ac5dd999282807 Mon Sep 17 00:00:00 2001 From: Sergey Novikov Date: Wed, 12 Mar 2025 09:13:37 +0100 Subject: [PATCH 2/3] Update versions --- .github/workflows/repository.yml | 2 +- Dockerfiles/Dockerfile | 2 +- Dockerfiles/Dockerfile-0.11 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/repository.yml b/.github/workflows/repository.yml index ca21e7d..44b1fb4 100644 --- a/.github/workflows/repository.yml +++ b/.github/workflows/repository.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Sync labels uses: micnncim/action-label-syncer@v1 diff --git a/Dockerfiles/Dockerfile b/Dockerfiles/Dockerfile index 608a2e4..400cc51 100644 --- a/Dockerfiles/Dockerfile +++ b/Dockerfiles/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.16.0-alpine as builder +FROM golang:1.24.1-alpine as builder # Install dependencies RUN set -x \ diff --git a/Dockerfiles/Dockerfile-0.11 b/Dockerfiles/Dockerfile-0.11 index d9bfd34..bb469d7 100644 --- a/Dockerfiles/Dockerfile-0.11 +++ b/Dockerfiles/Dockerfile-0.11 @@ -1,4 +1,4 @@ -FROM golang:alpine3.9 as builder +FROM golang:alpine3.21 as builder # Install dependencies RUN set -x \ From 72e207ccf4011637816d89ca863cbd050b9b64a1 Mon Sep 17 00:00:00 2001 From: Sergey Novikov Date: Wed, 12 Mar 2025 09:47:36 +0100 Subject: [PATCH 3/3] Fix missing checks --- Dockerfiles/Dockerfile-0.11 | 2 +- tests/output/generate/0.12/TEST-0.17.0.md | 149 +++++++++++++++++ tests/output/generate/0.12/TEST-0.18.0.md | 149 +++++++++++++++++ tests/output/generate/0.12/TEST-0.19.0.md | 149 +++++++++++++++++ tests/output/generate/0.12/TEST-0.8.0-rc.1.md | 138 --------------- tests/output/generate/0.12/TEST-0.8.0-rc.2.md | 138 --------------- tests/output/generate/0.12/TEST-0.8.0-rc.3.md | 138 --------------- .../{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} | 0 tests/output/generate/basic/TEST-0.18.0.md | 25 +++ tests/output/generate/basic/TEST-0.19.0.md | 25 +++ .../output/generate/basic/TEST-0.8.0-rc.1.md | 14 -- .../output/generate/basic/TEST-0.8.0-rc.2.md | 14 -- .../output/generate/basic/TEST-0.8.0-rc.3.md | 14 -- .../{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} | 2 +- tests/output/generate/default/TEST-0.18.0.md | 100 +++++++++++ tests/output/generate/default/TEST-0.19.0.md | 100 +++++++++++ .../generate/default/TEST-0.8.0-rc.1.md | 89 ---------- .../generate/default/TEST-0.8.0-rc.2.md | 89 ---------- .../generate/default/TEST-0.8.0-rc.3.md | 89 ---------- .../{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} | 0 .../0.12/TEST-0.18.0.md} | 9 + tests/output/replace/0.12/TEST-0.19.0.md | 158 ++++++++++++++++++ tests/output/replace/0.12/TEST-0.8.0-rc.1.md | 146 ---------------- tests/output/replace/0.12/TEST-0.8.0-rc.2.md | 146 ---------------- tests/output/replace/0.12/TEST-0.8.0-rc.3.md | 146 ---------------- .../{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} | 0 tests/output/replace/basic/TEST-0.18.0.md | 28 ++++ tests/output/replace/basic/TEST-0.19.0.md | 28 ++++ tests/output/replace/basic/TEST-0.8.0-rc.1.md | 16 -- tests/output/replace/basic/TEST-0.8.0-rc.2.md | 16 -- tests/output/replace/basic/TEST-0.8.0-rc.3.md | 16 -- .../{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} | 0 tests/output/replace/default/TEST-0.18.0.md | 109 ++++++++++++ tests/output/replace/default/TEST-0.19.0.md | 109 ++++++++++++ .../output/replace/default/TEST-0.8.0-rc.1.md | 97 ----------- .../output/replace/default/TEST-0.8.0-rc.2.md | 97 ----------- .../output/replace/default/TEST-0.8.0-rc.3.md | 97 ----------- 37 files changed, 1140 insertions(+), 1502 deletions(-) create mode 100644 tests/output/generate/0.12/TEST-0.17.0.md create mode 100644 tests/output/generate/0.12/TEST-0.18.0.md create mode 100644 tests/output/generate/0.12/TEST-0.19.0.md delete mode 100644 tests/output/generate/0.12/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/generate/0.12/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/generate/0.12/TEST-0.8.0-rc.3.md rename tests/output/generate/basic/{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} (100%) create mode 100644 tests/output/generate/basic/TEST-0.18.0.md create mode 100644 tests/output/generate/basic/TEST-0.19.0.md delete mode 100644 tests/output/generate/basic/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/generate/basic/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/generate/basic/TEST-0.8.0-rc.3.md rename tests/output/generate/default/{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} (99%) create mode 100644 tests/output/generate/default/TEST-0.18.0.md create mode 100644 tests/output/generate/default/TEST-0.19.0.md delete mode 100644 tests/output/generate/default/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/generate/default/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/generate/default/TEST-0.8.0-rc.3.md rename tests/output/replace/0.12/{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} (100%) rename tests/output/{generate/0.12/TEST-0.12.0-beta.1.md => replace/0.12/TEST-0.18.0.md} (99%) create mode 100644 tests/output/replace/0.12/TEST-0.19.0.md delete mode 100644 tests/output/replace/0.12/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/replace/0.12/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/replace/0.12/TEST-0.8.0-rc.3.md rename tests/output/replace/basic/{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} (100%) create mode 100644 tests/output/replace/basic/TEST-0.18.0.md create mode 100644 tests/output/replace/basic/TEST-0.19.0.md delete mode 100644 tests/output/replace/basic/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/replace/basic/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/replace/basic/TEST-0.8.0-rc.3.md rename tests/output/replace/default/{TEST-0.12.0-beta.1.md => TEST-0.17.0.md} (100%) create mode 100644 tests/output/replace/default/TEST-0.18.0.md create mode 100644 tests/output/replace/default/TEST-0.19.0.md delete mode 100644 tests/output/replace/default/TEST-0.8.0-rc.1.md delete mode 100644 tests/output/replace/default/TEST-0.8.0-rc.2.md delete mode 100644 tests/output/replace/default/TEST-0.8.0-rc.3.md diff --git a/Dockerfiles/Dockerfile-0.11 b/Dockerfiles/Dockerfile-0.11 index bb469d7..d9bfd34 100644 --- a/Dockerfiles/Dockerfile-0.11 +++ b/Dockerfiles/Dockerfile-0.11 @@ -1,4 +1,4 @@ -FROM golang:alpine3.21 as builder +FROM golang:alpine3.9 as builder # Install dependencies RUN set -x \ diff --git a/tests/output/generate/0.12/TEST-0.17.0.md b/tests/output/generate/0.12/TEST-0.17.0.md new file mode 100644 index 0000000..8a0b3bf --- /dev/null +++ b/tests/output/generate/0.12/TEST-0.17.0.md @@ -0,0 +1,149 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `string` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `1` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [computed\_egress\_rules](#input\_computed\_egress\_rules) | List of computed egress rules to create by name | `list(string)` | `[]` | no | +| [computed\_egress\_with\_cidr\_blocks](#input\_computed\_egress\_with\_cidr\_blocks) | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_computed\_egress\_with\_ipv6\_cidr\_blocks) | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_self](#input\_computed\_egress\_with\_self) | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_source\_security\_group\_id](#input\_computed\_egress\_with\_source\_security\_group\_id) | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_rules](#input\_computed\_ingress\_rules) | List of computed ingress rules to create by name | `list(string)` | `[]` | no | +| [computed\_ingress\_with\_cidr\_blocks](#input\_computed\_ingress\_with\_cidr\_blocks) | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_self](#input\_computed\_ingress\_with\_self) | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_source\_security\_group\_id](#input\_computed\_ingress\_with\_source\_security\_group\_id) | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create](#input\_create) | Whether to create security group and all rules | `bool` | `true` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [database\_outbound\_acl\_rules](#input\_database\_outbound\_acl\_rules) | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [description](#input\_description) | Description of security group | `string` | `"Security Group managed by Terraform"` | no | +| [egress\_cidr\_blocks](#input\_egress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | +| [egress\_ipv6\_cidr\_blocks](#input\_egress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | +| [egress\_prefix\_list\_ids](#input\_egress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | +| [egress\_rules](#input\_egress\_rules) | List of egress rules to create by name | `list(string)` | `[]` | no | +| [egress\_with\_cidr\_blocks](#input\_egress\_with\_cidr\_blocks) | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_ipv6\_cidr\_blocks](#input\_egress\_with\_ipv6\_cidr\_blocks) | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_self](#input\_egress\_with\_self) | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [egress\_with\_source\_security\_group\_id](#input\_egress\_with\_source\_security\_group\_id) | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `string` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `string` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `string` | `null` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | +| [ingress\_cidr\_blocks](#input\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_ipv6\_cidr\_blocks](#input\_ingress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_prefix\_list\_ids](#input\_ingress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_rules](#input\_ingress\_rules) | List of ingress rules to create by name | `list(string)` | `[]` | no | +| [ingress\_with\_cidr\_blocks](#input\_ingress\_with\_cidr\_blocks) | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_ipv6\_cidr\_blocks](#input\_ingress\_with\_ipv6\_cidr\_blocks) | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_self](#input\_ingress\_with\_self) | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [ingress\_with\_source\_security\_group\_id](#input\_ingress\_with\_source\_security\_group\_id) | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `string` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | Name of security group | `string` | n/a | yes | +| [network](#input\_network) | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | +| [number\_of\_computed\_egress\_rules](#input\_number\_of\_computed\_egress\_rules) | Number of computed egress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_cidr\_blocks) | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks) | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_self](#input\_number\_of\_computed\_egress\_with\_self) | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_egress\_with\_source\_security\_group\_id) | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_rules](#input\_number\_of\_computed\_ingress\_rules) | Number of computed ingress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_cidr\_blocks) | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_self](#input\_number\_of\_computed\_ingress\_with\_self) | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_ingress\_with\_source\_security\_group\_id) | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `any` | `[]` | no | +| [override\_special](#input\_override\_special) | n/a | `string` | `"%"` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `string` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list(string)` | `[]` | no | +| [subnetwork](#input\_subnetwork) | This
is
a
test | `string` | `"This\nis\na\ntest\n"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | +| [test\_var](#input\_test\_var) | This is a test variable | `string` | `""` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_name\_prefix](#input\_use\_name\_prefix) | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `string` | n/a | yes | +| [vpc\_id](#input\_vpc\_id) | ID of the VPC where to create security group | `string` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list(string)` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [environment](#output\_environment) | The output | +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group name | +| [this\_security\_group\_description](#output\_this\_security\_group\_description) | The description of the security group | +| [this\_security\_group\_id](#output\_this\_security\_group\_id) | The ID of the security group | +| [this\_security\_group\_name](#output\_this\_security\_group\_name) | The name of the security group | +| [this\_security\_group\_owner\_id](#output\_this\_security\_group\_owner\_id) | The owner ID | +| [this\_security\_group\_vpc\_id](#output\_this\_security\_group\_vpc\_id) | The VPC ID | diff --git a/tests/output/generate/0.12/TEST-0.18.0.md b/tests/output/generate/0.12/TEST-0.18.0.md new file mode 100644 index 0000000..8a0b3bf --- /dev/null +++ b/tests/output/generate/0.12/TEST-0.18.0.md @@ -0,0 +1,149 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `string` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `1` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [computed\_egress\_rules](#input\_computed\_egress\_rules) | List of computed egress rules to create by name | `list(string)` | `[]` | no | +| [computed\_egress\_with\_cidr\_blocks](#input\_computed\_egress\_with\_cidr\_blocks) | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_computed\_egress\_with\_ipv6\_cidr\_blocks) | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_self](#input\_computed\_egress\_with\_self) | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_source\_security\_group\_id](#input\_computed\_egress\_with\_source\_security\_group\_id) | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_rules](#input\_computed\_ingress\_rules) | List of computed ingress rules to create by name | `list(string)` | `[]` | no | +| [computed\_ingress\_with\_cidr\_blocks](#input\_computed\_ingress\_with\_cidr\_blocks) | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_self](#input\_computed\_ingress\_with\_self) | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_source\_security\_group\_id](#input\_computed\_ingress\_with\_source\_security\_group\_id) | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create](#input\_create) | Whether to create security group and all rules | `bool` | `true` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [database\_outbound\_acl\_rules](#input\_database\_outbound\_acl\_rules) | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [description](#input\_description) | Description of security group | `string` | `"Security Group managed by Terraform"` | no | +| [egress\_cidr\_blocks](#input\_egress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | +| [egress\_ipv6\_cidr\_blocks](#input\_egress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | +| [egress\_prefix\_list\_ids](#input\_egress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | +| [egress\_rules](#input\_egress\_rules) | List of egress rules to create by name | `list(string)` | `[]` | no | +| [egress\_with\_cidr\_blocks](#input\_egress\_with\_cidr\_blocks) | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_ipv6\_cidr\_blocks](#input\_egress\_with\_ipv6\_cidr\_blocks) | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_self](#input\_egress\_with\_self) | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [egress\_with\_source\_security\_group\_id](#input\_egress\_with\_source\_security\_group\_id) | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `string` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `string` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `string` | `null` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | +| [ingress\_cidr\_blocks](#input\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_ipv6\_cidr\_blocks](#input\_ingress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_prefix\_list\_ids](#input\_ingress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_rules](#input\_ingress\_rules) | List of ingress rules to create by name | `list(string)` | `[]` | no | +| [ingress\_with\_cidr\_blocks](#input\_ingress\_with\_cidr\_blocks) | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_ipv6\_cidr\_blocks](#input\_ingress\_with\_ipv6\_cidr\_blocks) | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_self](#input\_ingress\_with\_self) | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [ingress\_with\_source\_security\_group\_id](#input\_ingress\_with\_source\_security\_group\_id) | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `string` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | Name of security group | `string` | n/a | yes | +| [network](#input\_network) | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | +| [number\_of\_computed\_egress\_rules](#input\_number\_of\_computed\_egress\_rules) | Number of computed egress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_cidr\_blocks) | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks) | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_self](#input\_number\_of\_computed\_egress\_with\_self) | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_egress\_with\_source\_security\_group\_id) | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_rules](#input\_number\_of\_computed\_ingress\_rules) | Number of computed ingress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_cidr\_blocks) | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_self](#input\_number\_of\_computed\_ingress\_with\_self) | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_ingress\_with\_source\_security\_group\_id) | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `any` | `[]` | no | +| [override\_special](#input\_override\_special) | n/a | `string` | `"%"` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `string` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list(string)` | `[]` | no | +| [subnetwork](#input\_subnetwork) | This
is
a
test | `string` | `"This\nis\na\ntest\n"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | +| [test\_var](#input\_test\_var) | This is a test variable | `string` | `""` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_name\_prefix](#input\_use\_name\_prefix) | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `string` | n/a | yes | +| [vpc\_id](#input\_vpc\_id) | ID of the VPC where to create security group | `string` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list(string)` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [environment](#output\_environment) | The output | +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group name | +| [this\_security\_group\_description](#output\_this\_security\_group\_description) | The description of the security group | +| [this\_security\_group\_id](#output\_this\_security\_group\_id) | The ID of the security group | +| [this\_security\_group\_name](#output\_this\_security\_group\_name) | The name of the security group | +| [this\_security\_group\_owner\_id](#output\_this\_security\_group\_owner\_id) | The owner ID | +| [this\_security\_group\_vpc\_id](#output\_this\_security\_group\_vpc\_id) | The VPC ID | diff --git a/tests/output/generate/0.12/TEST-0.19.0.md b/tests/output/generate/0.12/TEST-0.19.0.md new file mode 100644 index 0000000..8a0b3bf --- /dev/null +++ b/tests/output/generate/0.12/TEST-0.19.0.md @@ -0,0 +1,149 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `string` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `1` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [computed\_egress\_rules](#input\_computed\_egress\_rules) | List of computed egress rules to create by name | `list(string)` | `[]` | no | +| [computed\_egress\_with\_cidr\_blocks](#input\_computed\_egress\_with\_cidr\_blocks) | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_computed\_egress\_with\_ipv6\_cidr\_blocks) | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_self](#input\_computed\_egress\_with\_self) | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_source\_security\_group\_id](#input\_computed\_egress\_with\_source\_security\_group\_id) | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_rules](#input\_computed\_ingress\_rules) | List of computed ingress rules to create by name | `list(string)` | `[]` | no | +| [computed\_ingress\_with\_cidr\_blocks](#input\_computed\_ingress\_with\_cidr\_blocks) | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_self](#input\_computed\_ingress\_with\_self) | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_source\_security\_group\_id](#input\_computed\_ingress\_with\_source\_security\_group\_id) | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create](#input\_create) | Whether to create security group and all rules | `bool` | `true` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [database\_outbound\_acl\_rules](#input\_database\_outbound\_acl\_rules) | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [description](#input\_description) | Description of security group | `string` | `"Security Group managed by Terraform"` | no | +| [egress\_cidr\_blocks](#input\_egress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | +| [egress\_ipv6\_cidr\_blocks](#input\_egress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | +| [egress\_prefix\_list\_ids](#input\_egress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | +| [egress\_rules](#input\_egress\_rules) | List of egress rules to create by name | `list(string)` | `[]` | no | +| [egress\_with\_cidr\_blocks](#input\_egress\_with\_cidr\_blocks) | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_ipv6\_cidr\_blocks](#input\_egress\_with\_ipv6\_cidr\_blocks) | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_self](#input\_egress\_with\_self) | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [egress\_with\_source\_security\_group\_id](#input\_egress\_with\_source\_security\_group\_id) | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `string` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `string` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `string` | `null` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | +| [ingress\_cidr\_blocks](#input\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_ipv6\_cidr\_blocks](#input\_ingress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_prefix\_list\_ids](#input\_ingress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_rules](#input\_ingress\_rules) | List of ingress rules to create by name | `list(string)` | `[]` | no | +| [ingress\_with\_cidr\_blocks](#input\_ingress\_with\_cidr\_blocks) | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_ipv6\_cidr\_blocks](#input\_ingress\_with\_ipv6\_cidr\_blocks) | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_self](#input\_ingress\_with\_self) | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [ingress\_with\_source\_security\_group\_id](#input\_ingress\_with\_source\_security\_group\_id) | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `string` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | Name of security group | `string` | n/a | yes | +| [network](#input\_network) | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | +| [number\_of\_computed\_egress\_rules](#input\_number\_of\_computed\_egress\_rules) | Number of computed egress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_cidr\_blocks) | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks) | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_self](#input\_number\_of\_computed\_egress\_with\_self) | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_egress\_with\_source\_security\_group\_id) | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_rules](#input\_number\_of\_computed\_ingress\_rules) | Number of computed ingress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_cidr\_blocks) | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_self](#input\_number\_of\_computed\_ingress\_with\_self) | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_ingress\_with\_source\_security\_group\_id) | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `any` | `[]` | no | +| [override\_special](#input\_override\_special) | n/a | `string` | `"%"` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `string` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list(string)` | `[]` | no | +| [subnetwork](#input\_subnetwork) | This
is
a
test | `string` | `"This\nis\na\ntest\n"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | +| [test\_var](#input\_test\_var) | This is a test variable | `string` | `""` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_name\_prefix](#input\_use\_name\_prefix) | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `string` | n/a | yes | +| [vpc\_id](#input\_vpc\_id) | ID of the VPC where to create security group | `string` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list(string)` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [environment](#output\_environment) | The output | +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group name | +| [this\_security\_group\_description](#output\_this\_security\_group\_description) | The description of the security group | +| [this\_security\_group\_id](#output\_this\_security\_group\_id) | The ID of the security group | +| [this\_security\_group\_name](#output\_this\_security\_group\_name) | The name of the security group | +| [this\_security\_group\_owner\_id](#output\_this\_security\_group\_owner\_id) | The owner ID | +| [this\_security\_group\_vpc\_id](#output\_this\_security\_group\_vpc\_id) | The VPC ID | diff --git a/tests/output/generate/0.12/TEST-0.8.0-rc.1.md b/tests/output/generate/0.12/TEST-0.8.0-rc.1.md deleted file mode 100644 index 49fcbff..0000000 --- a/tests/output/generate/0.12/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,138 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws\_db\_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - diff --git a/tests/output/generate/0.12/TEST-0.8.0-rc.2.md b/tests/output/generate/0.12/TEST-0.8.0-rc.2.md deleted file mode 100644 index ff3e2ef..0000000 --- a/tests/output/generate/0.12/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,138 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - diff --git a/tests/output/generate/0.12/TEST-0.8.0-rc.3.md b/tests/output/generate/0.12/TEST-0.8.0-rc.3.md deleted file mode 100644 index 45b9b0e..0000000 --- a/tests/output/generate/0.12/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,138 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - diff --git a/tests/output/generate/basic/TEST-0.12.0-beta.1.md b/tests/output/generate/basic/TEST-0.17.0.md similarity index 100% rename from tests/output/generate/basic/TEST-0.12.0-beta.1.md rename to tests/output/generate/basic/TEST-0.17.0.md diff --git a/tests/output/generate/basic/TEST-0.18.0.md b/tests/output/generate/basic/TEST-0.18.0.md new file mode 100644 index 0000000..0054870 --- /dev/null +++ b/tests/output/generate/basic/TEST-0.18.0.md @@ -0,0 +1,25 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [test](#input\_test) | test description | `any` | n/a | yes | + +## Outputs + +No outputs. diff --git a/tests/output/generate/basic/TEST-0.19.0.md b/tests/output/generate/basic/TEST-0.19.0.md new file mode 100644 index 0000000..0054870 --- /dev/null +++ b/tests/output/generate/basic/TEST-0.19.0.md @@ -0,0 +1,25 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [test](#input\_test) | test description | `any` | n/a | yes | + +## Outputs + +No outputs. diff --git a/tests/output/generate/basic/TEST-0.8.0-rc.1.md b/tests/output/generate/basic/TEST-0.8.0-rc.1.md deleted file mode 100644 index 79aeb0e..0000000 --- a/tests/output/generate/basic/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,14 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - diff --git a/tests/output/generate/basic/TEST-0.8.0-rc.2.md b/tests/output/generate/basic/TEST-0.8.0-rc.2.md deleted file mode 100644 index 79aeb0e..0000000 --- a/tests/output/generate/basic/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,14 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - diff --git a/tests/output/generate/basic/TEST-0.8.0-rc.3.md b/tests/output/generate/basic/TEST-0.8.0-rc.3.md deleted file mode 100644 index 79aeb0e..0000000 --- a/tests/output/generate/basic/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,14 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - diff --git a/tests/output/generate/default/TEST-0.12.0-beta.1.md b/tests/output/generate/default/TEST-0.17.0.md similarity index 99% rename from tests/output/generate/default/TEST-0.12.0-beta.1.md rename to tests/output/generate/default/TEST-0.17.0.md index d0c624f..3bcb908 100644 --- a/tests/output/generate/default/TEST-0.12.0-beta.1.md +++ b/tests/output/generate/default/TEST-0.17.0.md @@ -68,7 +68,7 @@ No resources. | [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | | [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list` | `[]` | no | | [tags](#input\_tags) | A mapping of tags to assign to all resources | `map` | `{}` | no | -| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | | [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | | [use\_option\_group\_name\_prefix](#input\_use\_option\_group\_name\_prefix) | Whether to use the option group name prefix or not | `bool` | `true` | no | | [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | diff --git a/tests/output/generate/default/TEST-0.18.0.md b/tests/output/generate/default/TEST-0.18.0.md new file mode 100644 index 0000000..3bcb908 --- /dev/null +++ b/tests/output/generate/default/TEST-0.18.0.md @@ -0,0 +1,100 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `any` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `7` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `any` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `any` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `any` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `list` | `[]` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `any` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list` | `[]` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map` | `{}` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_option\_group\_name\_prefix](#input\_use\_option\_group\_name\_prefix) | Whether to use the option group name prefix or not | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [use\_subnet\_group\_name\_prefix](#input\_use\_subnet\_group\_name\_prefix) | Whether to use the subnet group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `any` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group id | diff --git a/tests/output/generate/default/TEST-0.19.0.md b/tests/output/generate/default/TEST-0.19.0.md new file mode 100644 index 0000000..3bcb908 --- /dev/null +++ b/tests/output/generate/default/TEST-0.19.0.md @@ -0,0 +1,100 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `any` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `7` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `any` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `any` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `any` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `list` | `[]` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `any` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list` | `[]` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map` | `{}` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_option\_group\_name\_prefix](#input\_use\_option\_group\_name\_prefix) | Whether to use the option group name prefix or not | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [use\_subnet\_group\_name\_prefix](#input\_use\_subnet\_group\_name\_prefix) | Whether to use the subnet group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `any` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group id | diff --git a/tests/output/generate/default/TEST-0.8.0-rc.1.md b/tests/output/generate/default/TEST-0.8.0-rc.1.md deleted file mode 100644 index 5b10f6e..0000000 --- a/tests/output/generate/default/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,89 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws\_db\_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - diff --git a/tests/output/generate/default/TEST-0.8.0-rc.2.md b/tests/output/generate/default/TEST-0.8.0-rc.2.md deleted file mode 100644 index f853f03..0000000 --- a/tests/output/generate/default/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,89 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - diff --git a/tests/output/generate/default/TEST-0.8.0-rc.3.md b/tests/output/generate/default/TEST-0.8.0-rc.3.md deleted file mode 100644 index e7a254b..0000000 --- a/tests/output/generate/default/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,89 +0,0 @@ -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - diff --git a/tests/output/replace/0.12/TEST-0.12.0-beta.1.md b/tests/output/replace/0.12/TEST-0.17.0.md similarity index 100% rename from tests/output/replace/0.12/TEST-0.12.0-beta.1.md rename to tests/output/replace/0.12/TEST-0.17.0.md diff --git a/tests/output/generate/0.12/TEST-0.12.0-beta.1.md b/tests/output/replace/0.12/TEST-0.18.0.md similarity index 99% rename from tests/output/generate/0.12/TEST-0.12.0-beta.1.md rename to tests/output/replace/0.12/TEST-0.18.0.md index 42495f7..5a2ca4b 100644 --- a/tests/output/generate/0.12/TEST-0.12.0-beta.1.md +++ b/tests/output/replace/0.12/TEST-0.18.0.md @@ -1,3 +1,8 @@ +# Test + +Stuff before terraform-docs + + ## Requirements No requirements. @@ -147,3 +152,7 @@ No resources. | [this\_security\_group\_name](#output\_this\_security\_group\_name) | The name of the security group | | [this\_security\_group\_owner\_id](#output\_this\_security\_group\_owner\_id) | The owner ID | | [this\_security\_group\_vpc\_id](#output\_this\_security\_group\_vpc\_id) | The VPC ID | + + + +Stuff after terraform-docs diff --git a/tests/output/replace/0.12/TEST-0.19.0.md b/tests/output/replace/0.12/TEST-0.19.0.md new file mode 100644 index 0000000..5a2ca4b --- /dev/null +++ b/tests/output/replace/0.12/TEST-0.19.0.md @@ -0,0 +1,158 @@ +# Test + +Stuff before terraform-docs + + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `string` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `1` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [computed\_egress\_rules](#input\_computed\_egress\_rules) | List of computed egress rules to create by name | `list(string)` | `[]` | no | +| [computed\_egress\_with\_cidr\_blocks](#input\_computed\_egress\_with\_cidr\_blocks) | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_computed\_egress\_with\_ipv6\_cidr\_blocks) | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_self](#input\_computed\_egress\_with\_self) | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_egress\_with\_source\_security\_group\_id](#input\_computed\_egress\_with\_source\_security\_group\_id) | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_rules](#input\_computed\_ingress\_rules) | List of computed ingress rules to create by name | `list(string)` | `[]` | no | +| [computed\_ingress\_with\_cidr\_blocks](#input\_computed\_ingress\_with\_cidr\_blocks) | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_self](#input\_computed\_ingress\_with\_self) | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [computed\_ingress\_with\_source\_security\_group\_id](#input\_computed\_ingress\_with\_source\_security\_group\_id) | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create](#input\_create) | Whether to create security group and all rules | `bool` | `true` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [database\_outbound\_acl\_rules](#input\_database\_outbound\_acl\_rules) | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [description](#input\_description) | Description of security group | `string` | `"Security Group managed by Terraform"` | no | +| [egress\_cidr\_blocks](#input\_egress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | +| [egress\_ipv6\_cidr\_blocks](#input\_egress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | +| [egress\_prefix\_list\_ids](#input\_egress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | +| [egress\_rules](#input\_egress\_rules) | List of egress rules to create by name | `list(string)` | `[]` | no | +| [egress\_with\_cidr\_blocks](#input\_egress\_with\_cidr\_blocks) | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_ipv6\_cidr\_blocks](#input\_egress\_with\_ipv6\_cidr\_blocks) | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [egress\_with\_self](#input\_egress\_with\_self) | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [egress\_with\_source\_security\_group\_id](#input\_egress\_with\_source\_security\_group\_id) | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `string` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `string` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `string` | `null` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | +| [ingress\_cidr\_blocks](#input\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_ipv6\_cidr\_blocks](#input\_ingress\_ipv6\_cidr\_blocks) | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_prefix\_list\_ids](#input\_ingress\_prefix\_list\_ids) | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | +| [ingress\_rules](#input\_ingress\_rules) | List of ingress rules to create by name | `list(string)` | `[]` | no | +| [ingress\_with\_cidr\_blocks](#input\_ingress\_with\_cidr\_blocks) | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_ipv6\_cidr\_blocks](#input\_ingress\_with\_ipv6\_cidr\_blocks) | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | +| [ingress\_with\_self](#input\_ingress\_with\_self) | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | +| [ingress\_with\_source\_security\_group\_id](#input\_ingress\_with\_source\_security\_group\_id) | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `string` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | Name of security group | `string` | n/a | yes | +| [network](#input\_network) | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | +| [number\_of\_computed\_egress\_rules](#input\_number\_of\_computed\_egress\_rules) | Number of computed egress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_cidr\_blocks) | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks) | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_self](#input\_number\_of\_computed\_egress\_with\_self) | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_egress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_egress\_with\_source\_security\_group\_id) | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_rules](#input\_number\_of\_computed\_ingress\_rules) | Number of computed ingress rules to create by name | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_cidr\_blocks) | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks](#input\_number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks) | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_self](#input\_number\_of\_computed\_ingress\_with\_self) | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | +| [number\_of\_computed\_ingress\_with\_source\_security\_group\_id](#input\_number\_of\_computed\_ingress\_with\_source\_security\_group\_id) | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `any` | `[]` | no | +| [override\_special](#input\_override\_special) | n/a | `string` | `"%"` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `string` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list(string)` | `[]` | no | +| [subnetwork](#input\_subnetwork) | This
is
a
test | `string` | `"This\nis\na\ntest\n"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | +| [test\_var](#input\_test\_var) | This is a test variable | `string` | `""` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_name\_prefix](#input\_use\_name\_prefix) | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `string` | n/a | yes | +| [vpc\_id](#input\_vpc\_id) | ID of the VPC where to create security group | `string` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list(string)` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [environment](#output\_environment) | The output | +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group name | +| [this\_security\_group\_description](#output\_this\_security\_group\_description) | The description of the security group | +| [this\_security\_group\_id](#output\_this\_security\_group\_id) | The ID of the security group | +| [this\_security\_group\_name](#output\_this\_security\_group\_name) | The name of the security group | +| [this\_security\_group\_owner\_id](#output\_this\_security\_group\_owner\_id) | The owner ID | +| [this\_security\_group\_vpc\_id](#output\_this\_security\_group\_vpc\_id) | The VPC ID | + + + +Stuff after terraform-docs diff --git a/tests/output/replace/0.12/TEST-0.8.0-rc.1.md b/tests/output/replace/0.12/TEST-0.8.0-rc.1.md deleted file mode 100644 index 1d7d55c..0000000 --- a/tests/output/replace/0.12/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,146 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws\_db\_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - - - -Stuff after terraform-docs diff --git a/tests/output/replace/0.12/TEST-0.8.0-rc.2.md b/tests/output/replace/0.12/TEST-0.8.0-rc.2.md deleted file mode 100644 index 07fcb39..0000000 --- a/tests/output/replace/0.12/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,146 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - - - -Stuff after terraform-docs diff --git a/tests/output/replace/0.12/TEST-0.8.0-rc.3.md b/tests/output/replace/0.12/TEST-0.8.0-rc.3.md deleted file mode 100644 index b6d868b..0000000 --- a/tests/output/replace/0.12/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,146 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `string` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `string` | n/a | yes | -| engine | The database engine to use | `string` | n/a | yes | -| engine\_version | The engine version to use | `string` | n/a | yes | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `string` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `string` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `string` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `string` | n/a | yes | -| name | Name of security group | `string` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `string` | n/a | yes | -| port | The port on which the DB accepts connections | `string` | n/a | yes | -| username | Username for the master DB user | `string` | n/a | yes | -| vpc\_id | ID of the VPC where to create security group | `string` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `1` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| computed\_egress\_rules | List of computed egress rules to create by name | `list(string)` | `[]` | no | -| computed\_egress\_with\_cidr\_blocks | List of computed egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_ipv6\_cidr\_blocks | List of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_self | List of computed egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_egress\_with\_source\_security\_group\_id | List of computed egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_rules | List of computed ingress rules to create by name | `list(string)` | `[]` | no | -| computed\_ingress\_with\_cidr\_blocks | List of computed ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_ipv6\_cidr\_blocks | List of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_self | List of computed ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| computed\_ingress\_with\_source\_security\_group\_id | List of computed ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create | Whether to create security group and all rules | `bool` | `true` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| database\_outbound\_acl\_rules | Database subnets outbound network ACL rules | `list(map(string))` |
[
{
"cidr_block": "0.0.0.0/0",
"from_port": 0,
"protocol": "-1",
"rule_action": "allow",
"rule_number": 100,
"to_port": 0
}
]
| no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| description | Description of security group | `string` | `"Security Group managed by Terraform"` | no | -| egress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all egress rules | `list(string)` |
[
"0.0.0.0/0"
]
| no | -| egress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all egress rules | `list(string)` |
[
"::/0"
]
| no | -| egress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all egress rules | `list(string)` | `[]` | no | -| egress\_rules | List of egress rules to create by name | `list(string)` | `[]` | no | -| egress\_with\_cidr\_blocks | List of egress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_ipv6\_cidr\_blocks | List of egress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| egress\_with\_self | List of egress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| egress\_with\_source\_security\_group\_id | List of egress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list(string)` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_ipv6\_cidr\_blocks | List of IPv6 CIDR ranges to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_prefix\_list\_ids | List of prefix list IDs (for allowing access to VPC endpoints) to use on all ingress rules | `list(string)` | `[]` | no | -| ingress\_rules | List of ingress rules to create by name | `list(string)` | `[]` | no | -| ingress\_with\_cidr\_blocks | List of ingress rules to create where 'cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_ipv6\_cidr\_blocks | List of ingress rules to create where 'ipv6\_cidr\_blocks' is used | `list(map(string))` | `[]` | no | -| ingress\_with\_self | List of ingress rules to create where 'self' is defined | `list(map(string))` | `[]` | no | -| ingress\_with\_source\_security\_group\_id | List of ingress rules to create where 'source\_security\_group\_id' is used | `list(map(string))` | `[]` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| network | The network |
object({
vpc = object({
id = string
cidr_block = string
})
subnets = set(object({
id = string
cidr_block = string
}))
})
|
{
"subnets": [
{
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
],
"vpc": {
"cidr_block": "10.0.0.0/16",
"id": "vpc-123456"
}
}
| no | -| number\_of\_computed\_egress\_rules | Number of computed egress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_cidr\_blocks | Number of computed egress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_ipv6\_cidr\_blocks | Number of computed egress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_self | Number of computed egress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_egress\_with\_source\_security\_group\_id | Number of computed egress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_rules | Number of computed ingress rules to create by name | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_cidr\_blocks | Number of computed ingress rules to create where 'cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_ipv6\_cidr\_blocks | Number of computed ingress rules to create where 'ipv6\_cidr\_blocks' is used | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_self | Number of computed ingress rules to create where 'self' is defined | `number` | `0` | no | -| number\_of\_computed\_ingress\_with\_source\_security\_group\_id | Number of computed ingress rules to create where 'source\_security\_group\_id' is used | `number` | `0` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| override\_special | n/a | `string` | `"%"` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list(map(string))` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `true` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list(string)` | `[]` | no | -| subnetwork | This is a test | `string` | `"This\nis\na\ntest\n"` | no | -| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no | -| test\_var | This is a test variable | `string` | `""` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map(string)` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_name\_prefix | Whether to use name\_prefix or fixed name. Should be true to able to update security group name after initial creation | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list(string)` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| environment | The output | -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group name | -| this\_security\_group\_description | The description of the security group | -| this\_security\_group\_id | The ID of the security group | -| this\_security\_group\_name | The name of the security group | -| this\_security\_group\_owner\_id | The owner ID | -| this\_security\_group\_vpc\_id | The VPC ID | - - - -Stuff after terraform-docs diff --git a/tests/output/replace/basic/TEST-0.12.0-beta.1.md b/tests/output/replace/basic/TEST-0.17.0.md similarity index 100% rename from tests/output/replace/basic/TEST-0.12.0-beta.1.md rename to tests/output/replace/basic/TEST-0.17.0.md diff --git a/tests/output/replace/basic/TEST-0.18.0.md b/tests/output/replace/basic/TEST-0.18.0.md new file mode 100644 index 0000000..8c05494 --- /dev/null +++ b/tests/output/replace/basic/TEST-0.18.0.md @@ -0,0 +1,28 @@ + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [test](#input\_test) | test description | `any` | n/a | yes | + +## Outputs + +No outputs. + + diff --git a/tests/output/replace/basic/TEST-0.19.0.md b/tests/output/replace/basic/TEST-0.19.0.md new file mode 100644 index 0000000..8c05494 --- /dev/null +++ b/tests/output/replace/basic/TEST-0.19.0.md @@ -0,0 +1,28 @@ + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [test](#input\_test) | test description | `any` | n/a | yes | + +## Outputs + +No outputs. + + diff --git a/tests/output/replace/basic/TEST-0.8.0-rc.1.md b/tests/output/replace/basic/TEST-0.8.0-rc.1.md deleted file mode 100644 index 0fb6f5d..0000000 --- a/tests/output/replace/basic/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,16 +0,0 @@ - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - - diff --git a/tests/output/replace/basic/TEST-0.8.0-rc.2.md b/tests/output/replace/basic/TEST-0.8.0-rc.2.md deleted file mode 100644 index 0fb6f5d..0000000 --- a/tests/output/replace/basic/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,16 +0,0 @@ - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - - diff --git a/tests/output/replace/basic/TEST-0.8.0-rc.3.md b/tests/output/replace/basic/TEST-0.8.0-rc.3.md deleted file mode 100644 index 0fb6f5d..0000000 --- a/tests/output/replace/basic/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,16 +0,0 @@ - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| test | test description | `any` | n/a | yes | - -## Outputs - -No output. - - diff --git a/tests/output/replace/default/TEST-0.12.0-beta.1.md b/tests/output/replace/default/TEST-0.17.0.md similarity index 100% rename from tests/output/replace/default/TEST-0.12.0-beta.1.md rename to tests/output/replace/default/TEST-0.17.0.md diff --git a/tests/output/replace/default/TEST-0.18.0.md b/tests/output/replace/default/TEST-0.18.0.md new file mode 100644 index 0000000..3ff994c --- /dev/null +++ b/tests/output/replace/default/TEST-0.18.0.md @@ -0,0 +1,109 @@ +# Test + +Stuff before terraform-docs + + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `any` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `7` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `any` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `any` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `any` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `list` | `[]` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `any` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list` | `[]` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map` | `{}` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_option\_group\_name\_prefix](#input\_use\_option\_group\_name\_prefix) | Whether to use the option group name prefix or not | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [use\_subnet\_group\_name\_prefix](#input\_use\_subnet\_group\_name\_prefix) | Whether to use the subnet group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `any` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group id | + + + +Stuff after terraform-docs diff --git a/tests/output/replace/default/TEST-0.19.0.md b/tests/output/replace/default/TEST-0.19.0.md new file mode 100644 index 0000000..3ff994c --- /dev/null +++ b/tests/output/replace/default/TEST-0.19.0.md @@ -0,0 +1,109 @@ +# Test + +Stuff before terraform-docs + + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [allocated\_storage](#input\_allocated\_storage) | The allocated storage in gigabytes | `any` | n/a | yes | +| [allow\_major\_version\_upgrade](#input\_allow\_major\_version\_upgrade) | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | +| [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | +| [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | +| [availability\_zone](#input\_availability\_zone) | The Availability Zone of the RDS instance | `string` | `""` | no | +| [backup\_retention\_period](#input\_backup\_retention\_period) | The days to retain backups for | `number` | `7` | no | +| [backup\_window](#input\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | +| [character\_set\_name](#input\_character\_set\_name) | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | +| [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | +| [create\_db\_instance](#input\_create\_db\_instance) | Whether to create a database instance | `bool` | `true` | no | +| [create\_db\_option\_group](#input\_create\_db\_option\_group) | Whether to create a database option group | `bool` | `true` | no | +| [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group) | Whether to create a database parameter group | `bool` | `true` | no | +| [create\_db\_subnet\_group](#input\_create\_db\_subnet\_group) | Whether to create a database subnet group | `bool` | `true` | no | +| [create\_monitoring\_role](#input\_create\_monitoring\_role) | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | +| [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | +| [deletion\_protection](#input\_deletion\_protection) | The database can't be deleted when this value is set to true. | `bool` | `false` | no | +| [enabled\_cloudwatch\_logs\_exports](#input\_enabled\_cloudwatch\_logs\_exports) | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | +| [engine](#input\_engine) | The database engine to use | `any` | n/a | yes | +| [engine\_version](#input\_engine\_version) | The engine version to use | `any` | n/a | yes | +| [family](#input\_family) | The family of the DB parameter group | `string` | `""` | no | +| [final\_snapshot\_identifier](#input\_final\_snapshot\_identifier) | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | +| [iam\_database\_authentication\_enabled](#input\_iam\_database\_authentication\_enabled) | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | +| [identifier](#input\_identifier) | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | +| [instance\_class](#input\_instance\_class) | The instance type of the RDS instance | `any` | n/a | yes | +| [iops](#input\_iops) | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | +| [kms\_key\_id](#input\_kms\_key\_id) | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | +| [license\_model](#input\_license\_model) | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | +| [maintenance\_window](#input\_maintenance\_window) | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | +| [major\_engine\_version](#input\_major\_engine\_version) | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | +| [monitoring\_interval](#input\_monitoring\_interval) | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | +| [monitoring\_role\_arn](#input\_monitoring\_role\_arn) | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | +| [monitoring\_role\_name](#input\_monitoring\_role\_name) | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | +| [multi\_az](#input\_multi\_az) | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | +| [name](#input\_name) | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | +| [option\_group\_description](#input\_option\_group\_description) | The description of the option group | `string` | `""` | no | +| [option\_group\_name](#input\_option\_group\_name) | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | +| [options](#input\_options) | A list of Options to apply. | `list` | `[]` | no | +| [parameter\_group\_description](#input\_parameter\_group\_description) | Description of the DB parameter group to create | `string` | `""` | no | +| [parameter\_group\_name](#input\_parameter\_group\_name) | Name of the DB parameter group to associate or create | `string` | `""` | no | +| [parameters](#input\_parameters) | A list of DB parameters (map) to apply | `list` | `[]` | no | +| [password](#input\_password) | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | +| [port](#input\_port) | The port on which the DB accepts connections | `any` | n/a | yes | +| [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no | +| [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | +| [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | +| [snapshot\_identifier](#input\_snapshot\_identifier) | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | +| [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB instance is encrypted | `bool` | `false` | no | +| [storage\_type](#input\_storage\_type) | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | +| [subnet\_ids](#input\_subnet\_ids) | A list of VPC subnet IDs | `list` | `[]` | no | +| [tags](#input\_tags) | A mapping of tags to assign to all resources | `map` | `{}` | no | +| [timeouts](#input\_timeouts) | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | +| [timezone](#input\_timezone) | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | +| [use\_option\_group\_name\_prefix](#input\_use\_option\_group\_name\_prefix) | Whether to use the option group name prefix or not | `bool` | `true` | no | +| [use\_parameter\_group\_name\_prefix](#input\_use\_parameter\_group\_name\_prefix) | Whether to use the parameter group name prefix or not | `bool` | `true` | no | +| [use\_subnet\_group\_name\_prefix](#input\_use\_subnet\_group\_name\_prefix) | Whether to use the subnet group name prefix or not | `bool` | `true` | no | +| [username](#input\_username) | Username for the master DB user | `any` | n/a | yes | +| [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate | `list` | `[]` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [this\_db\_instance\_address](#output\_this\_db\_instance\_address) | The address of the RDS instance | +| [this\_db\_instance\_arn](#output\_this\_db\_instance\_arn) | The ARN of the RDS instance | +| [this\_db\_instance\_availability\_zone](#output\_this\_db\_instance\_availability\_zone) | The availability zone of the RDS instance | +| [this\_db\_instance\_endpoint](#output\_this\_db\_instance\_endpoint) | The connection endpoint | +| [this\_db\_instance\_hosted\_zone\_id](#output\_this\_db\_instance\_hosted\_zone\_id) | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | +| [this\_db\_instance\_id](#output\_this\_db\_instance\_id) | The RDS instance ID | +| [this\_db\_instance\_name](#output\_this\_db\_instance\_name) | The database name | +| [this\_db\_instance\_password](#output\_this\_db\_instance\_password) | The database password (this password may be old, because Terraform doesn't track it after initial creation) | +| [this\_db\_instance\_port](#output\_this\_db\_instance\_port) | The database port | +| [this\_db\_instance\_resource\_id](#output\_this\_db\_instance\_resource\_id) | The RDS Resource ID of this instance | +| [this\_db\_instance\_status](#output\_this\_db\_instance\_status) | The RDS instance status | +| [this\_db\_instance\_username](#output\_this\_db\_instance\_username) | The master username for the database | +| [this\_db\_option\_group\_arn](#output\_this\_db\_option\_group\_arn) | The ARN of the db option group | +| [this\_db\_option\_group\_id](#output\_this\_db\_option\_group\_id) | The db option group id | +| [this\_db\_parameter\_group\_arn](#output\_this\_db\_parameter\_group\_arn) | The ARN of the db parameter group | +| [this\_db\_parameter\_group\_id](#output\_this\_db\_parameter\_group\_id) | The db parameter group id | +| [this\_db\_subnet\_group\_arn](#output\_this\_db\_subnet\_group\_arn) | The ARN of the db subnet group | +| [this\_db\_subnet\_group\_id](#output\_this\_db\_subnet\_group\_id) | The db subnet group id | + + + +Stuff after terraform-docs diff --git a/tests/output/replace/default/TEST-0.8.0-rc.1.md b/tests/output/replace/default/TEST-0.8.0-rc.1.md deleted file mode 100644 index e912587..0000000 --- a/tests/output/replace/default/TEST-0.8.0-rc.1.md +++ /dev/null @@ -1,97 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws\_db\_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - - - -Stuff after terraform-docs diff --git a/tests/output/replace/default/TEST-0.8.0-rc.2.md b/tests/output/replace/default/TEST-0.8.0-rc.2.md deleted file mode 100644 index 78db06b..0000000 --- a/tests/output/replace/default/TEST-0.8.0-rc.2.md +++ /dev/null @@ -1,97 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - - - -Stuff after terraform-docs diff --git a/tests/output/replace/default/TEST-0.8.0-rc.3.md b/tests/output/replace/default/TEST-0.8.0-rc.3.md deleted file mode 100644 index ed85e52..0000000 --- a/tests/output/replace/default/TEST-0.8.0-rc.3.md +++ /dev/null @@ -1,97 +0,0 @@ -# Test - -Stuff before terraform-docs - - -## Providers - -No provider. - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:-----:| -| allocated\_storage | The allocated storage in gigabytes | `any` | n/a | yes | -| backup\_window | The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\_window | `any` | n/a | yes | -| engine | The database engine to use | `any` | n/a | yes | -| engine\_version | The engine version to use | `any` | n/a | yes | -| identifier | The name of the RDS instance, if omitted, Terraform will assign a random, unique identifier | `any` | n/a | yes | -| instance\_class | The instance type of the RDS instance | `any` | n/a | yes | -| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | `any` | n/a | yes | -| password | Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file | `any` | n/a | yes | -| port | The port on which the DB accepts connections | `any` | n/a | yes | -| username | Username for the master DB user | `any` | n/a | yes | -| allow\_major\_version\_upgrade | Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible | `bool` | `false` | no | -| apply\_immediately | Specifies whether any database modifications are applied immediately, or during the next maintenance window | `bool` | `false` | no | -| auto\_minor\_version\_upgrade | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window | `bool` | `true` | no | -| availability\_zone | The Availability Zone of the RDS instance | `string` | `""` | no | -| backup\_retention\_period | The days to retain backups for | `number` | `7` | no | -| character\_set\_name | (Optional) The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS for more information | `string` | `""` | no | -| copy\_tags\_to\_snapshot | On delete, copy all Instance tags to the final snapshot (if final\_snapshot\_identifier is specified) | `bool` | `false` | no | -| create\_db\_instance | Whether to create a database instance | `bool` | `true` | no | -| create\_db\_option\_group | Whether to create a database option group | `bool` | `true` | no | -| create\_db\_parameter\_group | Whether to create a database parameter group | `bool` | `true` | no | -| create\_db\_subnet\_group | Whether to create a database subnet group | `bool` | `true` | no | -| create\_monitoring\_role | Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. | `bool` | `false` | no | -| db\_subnet\_group\_name | Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC | `string` | `""` | no | -| deletion\_protection | The database can't be deleted when this value is set to true. | `bool` | `false` | no | -| enabled\_cloudwatch\_logs\_exports | List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine): alert, audit, error, general, listener, slowquery, trace, postgresql (PostgreSQL), upgrade (PostgreSQL). | `list` | `[]` | no | -| family | The family of the DB parameter group | `string` | `""` | no | -| final\_snapshot\_identifier | The name of your final DB snapshot when this DB instance is deleted. | `bool` | `false` | no | -| iam\_database\_authentication\_enabled | Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled | `bool` | `false` | no | -| iops | The amount of provisioned IOPS. Setting this implies a storage\_type of 'io1' | `number` | `0` | no | -| kms\_key\_id | The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN. If storage\_encrypted is set to true and kms\_key\_id is not specified the default KMS key created in your account will be used | `string` | `""` | no | -| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | `string` | `""` | no | -| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | `string` | `""` | no | -| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | `number` | `0` | no | -| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring\_interval is non-zero. | `string` | `""` | no | -| monitoring\_role\_name | Name of the IAM role which will be created when create\_monitoring\_role is enabled. | `string` | `"rds-monitoring-role"` | no | -| multi\_az | Specifies if the RDS instance is multi-AZ | `bool` | `false` | no | -| name | The DB schema name to create. If omitted, no database is created initially | `string` | `""` | no | -| option\_group\_description | The description of the option group | `string` | `""` | no | -| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | `string` | `""` | no | -| options | A list of Options to apply. | `list` | `[]` | no | -| parameter\_group\_description | Description of the DB parameter group to create | `string` | `""` | no | -| parameter\_group\_name | Name of the DB parameter group to associate or create | `string` | `""` | no | -| parameters | A list of DB parameters (map) to apply | `list` | `[]` | no | -| publicly\_accessible | Bool to control if instance is publicly accessible | `bool` | `false` | no | -| replicate\_source\_db | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate. | `string` | `""` | no | -| skip\_final\_snapshot | Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\_snapshot\_identifier | `bool` | `false` | no | -| snapshot\_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05. | `string` | `""` | no | -| storage\_encrypted | Specifies whether the DB instance is encrypted | `bool` | `false` | no | -| storage\_type | One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'standard' if not. Note that this behaviour is different from the AWS web console, where the default is 'gp2'. | `string` | `"gp2"` | no | -| subnet\_ids | A list of VPC subnet IDs | `list` | `[]` | no | -| tags | A mapping of tags to assign to all resources | `map` | `{}` | no | -| timeouts | (Optional) Updated Terraform resource management timeouts. Applies to `aws_db_instance` in particular to permit resource management times | `map` |
{
"create": "40m",
"delete": "40m",
"update": "80m"
}
| no | -| timezone | (Optional) Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See MSSQL User Guide for more information. | `string` | `""` | no | -| use\_option\_group\_name\_prefix | Whether to use the option group name prefix or not | `bool` | `true` | no | -| use\_parameter\_group\_name\_prefix | Whether to use the parameter group name prefix or not | `bool` | `true` | no | -| use\_subnet\_group\_name\_prefix | Whether to use the subnet group name prefix or not | `bool` | `true` | no | -| vpc\_security\_group\_ids | List of VPC security groups to associate | `list` | `[]` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| this\_db\_instance\_address | The address of the RDS instance | -| this\_db\_instance\_arn | The ARN of the RDS instance | -| this\_db\_instance\_availability\_zone | The availability zone of the RDS instance | -| this\_db\_instance\_endpoint | The connection endpoint | -| this\_db\_instance\_hosted\_zone\_id | The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record) | -| this\_db\_instance\_id | The RDS instance ID | -| this\_db\_instance\_name | The database name | -| this\_db\_instance\_password | The database password (this password may be old, because Terraform doesn't track it after initial creation) | -| this\_db\_instance\_port | The database port | -| this\_db\_instance\_resource\_id | The RDS Resource ID of this instance | -| this\_db\_instance\_status | The RDS instance status | -| this\_db\_instance\_username | The master username for the database | -| this\_db\_option\_group\_arn | The ARN of the db option group | -| this\_db\_option\_group\_id | The db option group id | -| this\_db\_parameter\_group\_arn | The ARN of the db parameter group | -| this\_db\_parameter\_group\_id | The db parameter group id | -| this\_db\_subnet\_group\_arn | The ARN of the db subnet group | -| this\_db\_subnet\_group\_id | The db subnet group id | - - - -Stuff after terraform-docs