You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Introduce Terratest
1. Refactor KMS module to use `data` block for policy
2. Refactor VPC and subnets to use default vpc
3. Variablise naming of each resource
4. Add initial set of tests for Vault
* Use default KMS keys
* Documentation updates
* Test Vault creation only
* Update pre-commit-config
* Module fix
* Add new example and update test
* golint
* Adjustments to README
* Use 'Equal' instead of 'Contains'
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
77
80
## Requirements
@@ -96,7 +99,7 @@ Module managed by:
96
99
| plan\_name | The display name of a backup plan |`string`| n/a | yes |
97
100
| rule\_completion\_window | The amount of time AWS Backup attempts a backup before canceling the job and returning an error |`number`|`null`| no |
98
101
| rule\_copy\_action\_destination\_vault\_arn | An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. |`string`|`null`| no |
99
-
| rule\_copy\_action\_lifecycle | The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. |`map`|`{}`| no |
102
+
| rule\_copy\_action\_lifecycle | The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. |`map(any)`|`{}`| no |
100
103
| rule\_lifecycle\_cold\_storage\_after | Specifies the number of days after creation that a recovery point is moved to cold storage |`number`|`null`| no |
101
104
| rule\_lifecycle\_delete\_after | Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`|`number`|`null`| no |
102
105
| rule\_name | An display name for a backup rule |`string`|`null`| no |
@@ -109,7 +112,7 @@ Module managed by:
109
112
| selection\_tag\_key | The key in a key-value pair |`string`|`null`| no |
110
113
| selection\_tag\_type | An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection |`string`|`null`| no |
111
114
| selection\_tag\_value | The value in a key-value pair |`string`|`null`| no |
112
-
| selection\_tags | A list of selection tags map |`list`|`[]`| no |
115
+
| selection\_tags | A list of selection tags map |`list(any)`|`[]`| no |
113
116
| tags | A mapping of tags to assign to the resource |`map(string)`|`{}`| no |
114
117
| vault\_kms\_key\_arn | The server-side encryption key that is used to protect your backups |`string`|`null`| no |
115
118
| vault\_name | Name of the backup vault to create. If not given, AWS use default |`string`|`null`| no |
@@ -132,13 +135,28 @@ Module managed by:
132
135
133
136
See LICENSE for full details.
134
137
135
-
## Pre-commit hooks
138
+
## Pre-commit hooks & Golang for Terratest
136
139
137
140
### Install dependencies
138
141
139
142
*[`pre-commit`](https://pre-commit.com/#install)
140
143
*[`terraform-docs`](https://github.com/segmentio/terraform-docs) required for `terraform_docs` hooks.
141
144
*[`TFLint`](https://github.com/terraform-linters/tflint) required for `terraform_tflint` hook.
145
+
*[`golang`](https://formulae.brew.sh/formula/go) required for running tests.
146
+
147
+
#### Terratest
148
+
149
+
We are using [Terratest](https://terratest.gruntwork.io/) to run tests on this module.
0 commit comments