From 80331cc6631812d54b645f18767d09a61cbc8a2d Mon Sep 17 00:00:00 2001 From: Mohammed Date: Tue, 18 Oct 2022 11:36:43 +0100 Subject: [PATCH] DEVOPS-1330 Adding ARN output for the IAM role --- CHANGELOG.md | 10 ++++++++-- README.md | 3 ++- examples/vault/outputs.tf | 4 ++++ outputs.tf | 5 +++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83cec4e..1344a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -- DEVOPS-1330 Added output for IAM Role name + + + +## [1.5.1] - 2022-10-14 + +- DEVOPS-1330 Added output for IAM Role name ([#14](https://github.com/umotif-public/terraform-aws-backup/issues/14)) @@ -63,7 +68,8 @@ All notable changes to this project will be documented in this file. - Initial commit -[Unreleased]: https://github.com/umotif-public/terraform-aws-backup/compare/1.5.0...HEAD +[Unreleased]: https://github.com/umotif-public/terraform-aws-backup/compare/1.5.1...HEAD +[1.5.1]: https://github.com/umotif-public/terraform-aws-backup/compare/1.5.0...1.5.1 [1.5.0]: https://github.com/umotif-public/terraform-aws-backup/compare/1.4.0...1.5.0 [1.4.0]: https://github.com/umotif-public/terraform-aws-backup/compare/1.3.1...1.4.0 [1.3.1]: https://github.com/umotif-public/terraform-aws-backup/compare/1.3.0...1.3.1 diff --git a/README.md b/README.md index 1658cac..07ef443 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Module managed by: | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.0.0 | +| [aws](#provider\_aws) | 4.35.0 | ## Modules @@ -151,6 +151,7 @@ No modules. | [backup\_sns\_topic\_arn](#output\_backup\_sns\_topic\_arn) | The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events | | [backup\_vault\_arn](#output\_backup\_vault\_arn) | The Amazon Resource Name (ARN) that identifies the AWS Backup Vault | | [backup\_vault\_events](#output\_backup\_vault\_events) | An array of events that indicate the status of jobs to back up resources to the backup vault. | +| [backup\_vault\_iam\_role\_arn](#output\_backup\_vault\_iam\_role\_arn) | The ARN of the backup IAM role | | [backup\_vault\_iam\_role\_name](#output\_backup\_vault\_iam\_role\_name) | The name of the backup IAM role | | [backup\_vault\_id](#output\_backup\_vault\_id) | The name of the AWS Backup Vault | | [backup\_vault\_recovery\_points](#output\_backup\_vault\_recovery\_points) | The number of recovery points that are stored in a backup vault | diff --git a/examples/vault/outputs.tf b/examples/vault/outputs.tf index c97016d..50f6f09 100644 --- a/examples/vault/outputs.tf +++ b/examples/vault/outputs.tf @@ -36,4 +36,8 @@ output "backup_selection_id" { output "backup_vault_iam_role_name" { description = "The name of the backup IAM role" value = module.backup.backup_vault_iam_role_name +} + +output "backup_vault_iam_role_arn" { + output = module.backup.backup_vault_iam_role_name.arn } \ No newline at end of file diff --git a/outputs.tf b/outputs.tf index 1708e48..d64127a 100644 --- a/outputs.tf +++ b/outputs.tf @@ -63,4 +63,9 @@ output "backup_vault_events" { output "backup_vault_iam_role_name" { description = "The name of the backup IAM role" value = aws_iam_role.main.name +} + +output "backup_vault_iam_role_arn" { + description = "The ARN of the backup IAM role" + value = aws_iam_role.main.arn } \ No newline at end of file