From 9f6627fe0845fe7009e60961499b6f1fd3f750e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Taveira=20Ara=C3=BAjo?= Date: Thu, 8 Aug 2024 09:31:20 -0700 Subject: [PATCH] fix(externalrole): adjust outputs. Returning an `arn` rather than a `role` reduces the stuttering when referring to the `externalrole` module, e.g: `module.metrics_role.arn` vs `module.metrics_role.role.arn`. --- modules/externalrole/README.md | 2 +- modules/externalrole/outputs.tf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/externalrole/README.md b/modules/externalrole/README.md index d9f28eb..056cd9b 100644 --- a/modules/externalrole/README.md +++ b/modules/externalrole/README.md @@ -70,5 +70,5 @@ No modules. | Name | Description | |------|-------------| -| [role](#output\_role) | IAM role to be assummed by Observe | +| [arn](#output\_arn) | ARN for IAM role to be assumed by Observe | diff --git a/modules/externalrole/outputs.tf b/modules/externalrole/outputs.tf index 68e58de..16d104a 100644 --- a/modules/externalrole/outputs.tf +++ b/modules/externalrole/outputs.tf @@ -1,4 +1,4 @@ -output "role" { - description = "IAM role to be assummed by Observe" - value = aws_iam_role.this +output "arn" { + description = "ARN for IAM role to be assumed by Observe" + value = aws_iam_role.this.arn }