Skip to content

Commit 167d870

Browse files
committed
updates to example and variables
1 parent c09cce4 commit 167d870

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ No modules.
287287
| <a name="input_cluster_ca_cert_identifier"></a> [cluster\_ca\_cert\_identifier](#input\_cluster\_ca\_cert\_identifier) | The CA certificate identifier to use for the DB cluster's server certificate. Currently only supported for multi-az DB clusters | `string` | `null` | no |
288288
| <a name="input_cluster_members"></a> [cluster\_members](#input\_cluster\_members) | List of RDS Instances that are a part of this cluster | `list(string)` | `null` | no |
289289
| <a name="input_cluster_monitoring_interval"></a> [cluster\_monitoring\_interval](#input\_cluster\_monitoring\_interval) | Interval, in seconds, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60 | `number` | `0` | no |
290-
| <a name="input_cluster_monitoring_role_arn"></a> [cluster\_monitoring\_role\_arn](#input\_cluster\_monitoring\_role\_arn) | ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Clusters | `string` | `null` | no |
291290
| <a name="input_cluster_performance_insights_enabled"></a> [cluster\_performance\_insights\_enabled](#input\_cluster\_performance\_insights\_enabled) | Valid only for Non-Aurora Multi-AZ DB Clusters. Enables Performance Insights for the RDS Cluster | `bool` | `null` | no |
292291
| <a name="input_cluster_performance_insights_kms_key_id"></a> [cluster\_performance\_insights\_kms\_key\_id](#input\_cluster\_performance\_insights\_kms\_key\_id) | Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the KMS Key ID to encrypt Performance Insights data. If not specified, the default RDS KMS key will be used (aws/rds) | `string` | `null` | no |
293292
| <a name="input_cluster_performance_insights_retention_period"></a> [cluster\_performance\_insights\_retention\_period](#input\_cluster\_performance\_insights\_retention\_period) | Valid only for Non-Aurora Multi-AZ DB Clusters. Specifies the amount of time to retain performance insights data for. Defaults to 7 days if Performance Insights are enabled. Valid values are 7, month * 31 (where month is a number of months from 1-23), and 731 | `number` | `null` | no |

examples/postgresql/main.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ module "aurora" {
3131
master_username = "root"
3232
storage_type = "aurora-iopt1"
3333
cluster_monitoring_interval = 30
34-
iam_role_name = "${local.name}-monitor"
35-
iam_role_use_name_prefix = true
36-
iam_role_description = "${local.name} RDS enhanced monitoring IAM role"
3734

3835
instances = {
3936
1 = {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ resource "aws_rds_cluster" "this" {
7878
master_password = var.is_primary_cluster && !var.manage_master_user_password ? var.master_password : null
7979
master_username = var.is_primary_cluster ? var.master_username : null
8080
monitoring_interval = var.cluster_monitoring_interval
81-
monitoring_role_arn = var.create_monitoring_role && var.cluster_monitoring_interval > 0 ? try(aws_iam_role.rds_enhanced_monitoring[0].arn, null) : var.cluster_monitoring_role_arn
81+
monitoring_role_arn = var.create_monitoring_role && var.cluster_monitoring_interval > 0 ? try(aws_iam_role.rds_enhanced_monitoring[0].arn, null) : var.monitoring_role_arn
8282
network_type = var.network_type
8383
performance_insights_enabled = var.cluster_performance_insights_enabled
8484
performance_insights_kms_key_id = var.cluster_performance_insights_kms_key_id

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ variable "cluster_monitoring_interval" {
126126
default = 0
127127
}
128128

129-
variable "cluster_monitoring_role_arn" {
130-
description = "ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Clusters"
131-
type = string
132-
default = null
133-
}
134-
135129
variable "copy_tags_to_snapshot" {
136130
description = "Copy all Cluster `tags` to snapshots"
137131
type = bool

0 commit comments

Comments
 (0)