diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dabb150..dc907a5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
- rev: v1.80.0
+ rev: v1.83.0
hooks:
- id: terraform_fmt
- id: terraform_validate
diff --git a/README.md b/README.md
index 8b1e44f..4fcd4d5 100644
--- a/README.md
+++ b/README.md
@@ -142,8 +142,8 @@ No modules.
|------|-------------|
| [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
| [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
-| [iam\_role\_name](#output\_iam\_role\_name) | The name of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
-| [iam\_role\_unique_id](#output\_iam\_role\_unique_id) | Stable and unique string identifying the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
+| [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 |
| [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 |
diff --git a/examples/postgresql-iam-cluster/README.md b/examples/postgresql-iam-cluster/README.md
index 3744689..8bc91b8 100644
--- a/examples/postgresql-iam-cluster/README.md
+++ b/examples/postgresql-iam-cluster/README.md
@@ -63,9 +63,9 @@ No inputs.
| Name | Description |
|------|-------------|
| [db\_proxy\_endpoints](#output\_db\_proxy\_endpoints) | Array containing the full resource object and attributes for all DB proxy endpoints created |
-| [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
-| [iam\_role\_name](#output\_iam\_role\_name) | The name of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
-| [iam\_role\_unique_id](#output\_iam\_role\_unique_id) | Stable and unique string identifying the IAM role that the proxy uses to access secrets in AWS Secrets Manager. |
+| [iam\_role\_arn](#output\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the role proxy uses to access secrets |
+| [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 |
| [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 |
diff --git a/outputs.tf b/outputs.tf
index e380483..355b2b4 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -81,15 +81,15 @@ output "log_group_arn" {
# 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."
- value = try(aws_iam_role.this.arn, null)
+ value = try(aws_iam_role.this[0].arn, null)
}
output "iam_role_name" {
description = "IAM role name"
- value = try(aws_iam_role.this.name, null)
+ value = try(aws_iam_role.this[0].name, null)
}
output "iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
- value = try(aws_iam_role.this.unique_id, null)
+ value = try(aws_iam_role.this[0].unique_id, null)
}