diff --git a/README.md b/README.md index 90f9cd9..c88d85a 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ No modules. | [iam\_role\_name](#output\_iam\_role\_name) | IAM role name | | [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role | | [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group | | [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy | | [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group | | [proxy\_default\_target\_group\_id](#output\_proxy\_default\_target\_group\_id) | The ID for the default target group | diff --git a/examples/mysql-iam-cluster/README.md b/examples/mysql-iam-cluster/README.md index f67538f..922a6e4 100644 --- a/examples/mysql-iam-cluster/README.md +++ b/examples/mysql-iam-cluster/README.md @@ -64,6 +64,7 @@ No inputs. |------|-------------| | [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created | | [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group | | [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy | | [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group | | [proxy\_default\_target\_group\_id](#output\_proxy\_default\_target\_group\_id) | The ID for the default target group | diff --git a/examples/mysql-iam-cluster/outputs.tf b/examples/mysql-iam-cluster/outputs.tf index 4b07beb..1420c64 100644 --- a/examples/mysql-iam-cluster/outputs.tf +++ b/examples/mysql-iam-cluster/outputs.tf @@ -77,3 +77,8 @@ output "log_group_arn" { description = "The Amazon Resource Name (ARN) of the CloudWatch log group" value = module.rds_proxy.log_group_arn } + +output "log_group_name" { + description = "The name of the CloudWatch log group" + value = module.rds_proxy.log_group_name +} diff --git a/examples/mysql-iam-instance/README.md b/examples/mysql-iam-instance/README.md index 61da179..8f9e2bb 100644 --- a/examples/mysql-iam-instance/README.md +++ b/examples/mysql-iam-instance/README.md @@ -72,6 +72,7 @@ No inputs. |------|-------------| | [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created | | [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group | | [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy | | [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group | | [proxy\_default\_target\_group\_id](#output\_proxy\_default\_target\_group\_id) | The ID for the default target group | diff --git a/examples/mysql-iam-instance/outputs.tf b/examples/mysql-iam-instance/outputs.tf index 4b07beb..1420c64 100644 --- a/examples/mysql-iam-instance/outputs.tf +++ b/examples/mysql-iam-instance/outputs.tf @@ -77,3 +77,8 @@ output "log_group_arn" { description = "The Amazon Resource Name (ARN) of the CloudWatch log group" value = module.rds_proxy.log_group_arn } + +output "log_group_name" { + description = "The name of the CloudWatch log group" + value = module.rds_proxy.log_group_name +} diff --git a/examples/postgresql-iam-cluster/README.md b/examples/postgresql-iam-cluster/README.md index 7244bff..445c455 100644 --- a/examples/postgresql-iam-cluster/README.md +++ b/examples/postgresql-iam-cluster/README.md @@ -67,6 +67,7 @@ No inputs. | [iam\_role\_name](#output\_iam\_role\_name) | The name of the role proxy uses to access secrets | | [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Stable and unique string identifying the role proxy uses to access secrets | | [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group | | [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy | | [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group | | [proxy\_default\_target\_group\_id](#output\_proxy\_default\_target\_group\_id) | The ID for the default target group | diff --git a/examples/postgresql-iam-cluster/outputs.tf b/examples/postgresql-iam-cluster/outputs.tf index 97f24a7..18b5a0b 100644 --- a/examples/postgresql-iam-cluster/outputs.tf +++ b/examples/postgresql-iam-cluster/outputs.tf @@ -78,6 +78,11 @@ output "log_group_arn" { value = module.rds_proxy.log_group_arn } +output "log_group_name" { + description = "The name of the CloudWatch log group" + value = module.rds_proxy.log_group_name +} + # IAM role output "iam_role_arn" { description = "The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets" diff --git a/examples/postgresql-iam-instance/README.md b/examples/postgresql-iam-instance/README.md index fe79c88..9960340 100644 --- a/examples/postgresql-iam-instance/README.md +++ b/examples/postgresql-iam-instance/README.md @@ -72,6 +72,7 @@ No inputs. |------|-------------| | [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created | | [log\_group\_arn](#output\_log\_group\_arn) | The Amazon Resource Name (ARN) of the CloudWatch log group | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group | | [proxy\_arn](#output\_proxy\_arn) | The Amazon Resource Name (ARN) for the proxy | | [proxy\_default\_target\_group\_arn](#output\_proxy\_default\_target\_group\_arn) | The Amazon Resource Name (ARN) for the default target group | | [proxy\_default\_target\_group\_id](#output\_proxy\_default\_target\_group\_id) | The ID for the default target group | diff --git a/examples/postgresql-iam-instance/outputs.tf b/examples/postgresql-iam-instance/outputs.tf index 4b07beb..1420c64 100644 --- a/examples/postgresql-iam-instance/outputs.tf +++ b/examples/postgresql-iam-instance/outputs.tf @@ -77,3 +77,8 @@ output "log_group_arn" { description = "The Amazon Resource Name (ARN) of the CloudWatch log group" value = module.rds_proxy.log_group_arn } + +output "log_group_name" { + description = "The name of the CloudWatch log group" + value = module.rds_proxy.log_group_name +} diff --git a/outputs.tf b/outputs.tf index 355b2b4..fce0928 100644 --- a/outputs.tf +++ b/outputs.tf @@ -78,6 +78,11 @@ output "log_group_arn" { value = try(aws_cloudwatch_log_group.this[0].arn, null) } +output "log_group_name" { + description = "The name of the CloudWatch log group" + value = try(aws_cloudwatch_log_group.this[0].name, null) +} + # IAM role output "iam_role_arn" { description = "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager."