Skip to content

Commit 00ca2fa

Browse files
CA-166 - Update RDS module to prevent installing aws provider 4.0 (#23)
* Adds extension to ignore in the .gitignore file. * Updates version to prevent aws provider 4.0 to be installed.
1 parent 5ff50e8 commit 00ca2fa

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*.tfstate
66
*.tfstate.*
77

8+
# Terraform module lock files
9+
*.terraform.lock.hcl
10+
811
# Crash log files
912
crash.log
1013

@@ -37,3 +40,6 @@ terratest.tf.json
3740

3841
# Ignore makefile
3942
ops-makefile
43+
44+
# Ignore tfvars
45+
**/*.tfvars

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Tamr Terraform Template Repo
22

3+
## v3.1.1 - February 16th 2022
4+
* Updates version file to prevent the major upgrade to the AWS provider version 4.0.
5+
* Adds new extensions to be ignored in the ".gitignore" file.
6+
37
## v3.1.0 - November 3rd 2021
48
* Adds variables `enabled_cloudwatch_logs_exports`, `param_log_min_duration_statement` and `param_log_statement` configuring the logs and its publishing to CloudWatch
59

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ This terraform module will create:
3636
| Name | Version |
3737
|------|---------|
3838
| terraform | >= 0.13 |
39-
| aws | >= 3.36.0 |
39+
| aws | >= 3.36.0, < 4.0.0 |
4040

4141
## Providers
4242

4343
| Name | Version |
4444
|------|---------|
45-
| aws | >= 3.36.0 |
45+
| aws | >= 3.36.0, < 4.0.0 |
4646

4747
## Inputs
4848

@@ -62,11 +62,14 @@ This terraform module will create:
6262
| backup\_window | Backup window | `string` | `"03:29-03:59"` | no |
6363
| copy\_tags\_to\_snapshot | Copy tags to snapshots | `bool` | `true` | no |
6464
| db\_port | The port on which the database accepts connections. | `number` | `5432` | no |
65+
| enabled\_cloudwatch\_logs\_exports | Indicates that postgresql logs will be configured to be sent automatically to Cloudwatch | `bool` | `true` | no |
6566
| engine\_version | Version of RDS Postgres | `string` | `"12"` | no |
6667
| identifier\_prefix | Identifier prefix for the RDS instance | `string` | `"tamr-rds-"` | no |
6768
| instance\_class | Instance class | `string` | `"db.m4.large"` | no |
6869
| maintenance\_window | Maintenance window | `string` | `"sun:04:32-sun:05:02"` | no |
6970
| max\_allocated\_storage | Max allocate storage | `number` | `1000` | no |
71+
| param\_log\_min\_duration\_statement | (ms) Sets the minimum execution time above which statements will be logged. | `string` | `"-1"` | no |
72+
| param\_log\_statement | Sets the type of statements logged. Valid values are none, ddl, mod, all | `string` | `"none"` | no |
7073
| parameter\_group\_family | The family of the DB parameter group | `string` | `"postgres12"` | no |
7174
| parameter\_group\_name | The name of the rds parameter group | `string` | `"rds-postgres-pg"` | no |
7275
| postgres\_name | The name of the postgres database to create on the DB instance | `string` | `"tamr_rds_db"` | no |
@@ -80,6 +83,7 @@ This terraform module will create:
8083

8184
| Name | Description |
8285
|------|-------------|
86+
| cloudwatch\_logs\_path | n/a |
8387
| rds\_db\_port | n/a |
8488
| rds\_dbname | n/a |
8589
| rds\_hostname | n/a |

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
terraform {
22
required_version = ">= 0.13"
33
required_providers {
4-
aws = ">= 3.36.0"
4+
aws = ">= 3.36.0, < 4.0.0"
55
}
66
}

0 commit comments

Comments
 (0)