Skip to content

Commit 6672a32

Browse files
Sam Sullivanactions-bot
andauthored
Support monitoring_role_arn; required for monitoring_interval (#75)
* Support monitoring_role_arn; required for monitoring_interval * Updated README.md Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
1 parent c01e0ea commit 6672a32

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Available targets:
147147
148148
```
149149
<!-- markdownlint-restore -->
150+
<!-- markdownlint-disable -->
150151
## Requirements
151152

152153
| Name | Version |
@@ -203,6 +204,7 @@ Available targets:
203204
| major\_engine\_version | Database MAJOR engine version, depends on engine type | `string` | `""` | no |
204205
| max\_allocated\_storage | The upper limit to which RDS can automatically scale the storage in GBs | `number` | `0` | no |
205206
| 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. Valid Values are 0, 1, 5, 10, 15, 30, 60. | `string` | `"0"` | no |
207+
| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs | `string` | `null` | no |
206208
| multi\_az | Set to true if multi AZ deployment must be supported | `bool` | `false` | no |
207209
| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `""` | no |
208210
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `""` | no |
@@ -236,6 +238,7 @@ Available targets:
236238
| security\_group\_id | ID of the Security Group |
237239
| subnet\_group\_id | ID of the Subnet Group |
238240

241+
<!-- markdownlint-restore -->
239242

240243

241244

docs/terraform.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable -->
12
## Requirements
23

34
| Name | Version |
@@ -54,6 +55,7 @@
5455
| major\_engine\_version | Database MAJOR engine version, depends on engine type | `string` | `""` | no |
5556
| max\_allocated\_storage | The upper limit to which RDS can automatically scale the storage in GBs | `number` | `0` | no |
5657
| 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. Valid Values are 0, 1, 5, 10, 15, 30, 60. | `string` | `"0"` | no |
58+
| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs | `string` | `null` | no |
5759
| multi\_az | Set to true if multi AZ deployment must be supported | `bool` | `false` | no |
5860
| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `""` | no |
5961
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `""` | no |
@@ -87,3 +89,4 @@
8789
| security\_group\_id | ID of the Security Group |
8890
| subnet\_group\_id | ID of the Subnet Group |
8991

92+
<!-- markdownlint-restore -->

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ resource "aws_db_instance" "default" {
7878
performance_insights_retention_period = var.performance_insights_enabled ? var.performance_insights_retention_period : null
7979

8080
monitoring_interval = var.monitoring_interval
81+
monitoring_role_arn = var.monitoring_role_arn
8182
}
8283

8384
resource "aws_db_parameter_group" "default" {

variables.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,13 @@ variable "monitoring_interval" {
340340
default = "0"
341341
}
342342

343+
variable "monitoring_role_arn" {
344+
type = string
345+
description = "The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs"
346+
default = null
347+
}
343348

344349
variable "iam_database_authentication_enabled" {
345350
description = "Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled"
346351
default = false
347-
}
352+
}

0 commit comments

Comments
 (0)