From 7dfd77f6c5bcccb91a7ecb8d1b27b5b634ef0ca3 Mon Sep 17 00:00:00 2001 From: Tyler J Smith Date: Wed, 12 Dec 2018 10:44:42 -0600 Subject: [PATCH 1/2] Added two CW log export values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new values are supported by PostgreSQL after version PostgreSQL 9.6.6.  PostgreSQL doesn't support the existing values in the log export list. --- aws/resource_aws_db_instance.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aws/resource_aws_db_instance.go b/aws/resource_aws_db_instance.go index 8bd48847b09..2ae0ee2b429 100644 --- a/aws/resource_aws_db_instance.go +++ b/aws/resource_aws_db_instance.go @@ -408,6 +408,8 @@ func resourceAwsDbInstance() *schema.Resource { "listener", "slowquery", "trace", + "postgresql", + "upgrade", }, false), }, }, From e58d45e674f02e7f4770edd8000e6bf77c4e2d40 Mon Sep 17 00:00:00 2001 From: Tyler J Smith Date: Wed, 12 Dec 2018 10:45:45 -0600 Subject: [PATCH 2/2] Added two CW log export values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new values are supported by PostgreSQL after version PostgreSQL 9.6.6.  PostgreSQL doesn't support the existing values in the log export list. --- website/docs/r/db_instance.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/db_instance.html.markdown b/website/docs/r/db_instance.html.markdown index 505dae61cb5..bd3ed7258fc 100644 --- a/website/docs/r/db_instance.html.markdown +++ b/website/docs/r/db_instance.html.markdown @@ -94,7 +94,7 @@ for additional read replica contraints. * `deletion_protection` - (Optional) If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to `true`. The default is `false`. * `domain` - (Optional) The ID of the Directory Service Active Directory domain to create the instance in. * `domain_iam_role_name` - (Optional, but required if domain is provided) The name of the IAM role to be used when making API calls to the Directory Service. -* `enabled_cloudwatch_logs_exports` - (Optional) 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`. +* `enabled_cloudwatch_logs_exports` - (Optional) 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). * `engine` - (Required unless a `snapshot_identifier` or `replicate_source_db` is provided) The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB cluster](/docs/providers/aws/r/rds_cluster.html)'s engine'.