feat(module): add output variable arn and deprecate output variable iam_role_arn

This commit is contained in:
Julien Dessaux 2025-04-12 07:39:57 +02:00
parent 336e7703d6
commit 441295d140
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 19 additions and 2 deletions

View file

@ -2,8 +2,18 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## 1.1.0 - 2025-04-12
### Added
- Added output variable `arn`.
### Deprecated
- Deprecated output variable `iam_role_arn`. Use `arn` instead.
## 1.0.0 - 2025-04-11 ## 1.0.0 - 2025-04-11
### Added ### Added
- initial import - Initial import.

View file

@ -11,7 +11,7 @@ continuous integration tasks on AWS.
``` hcl ``` hcl
module "aws_iam_role" { module "aws_iam_role" {
source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-role?depth=1&ref=1.0.0" source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-role?depth=1&ref=1.1.0"
name = local.name name = local.name
policy_statements = jsonencode([ policy_statements = jsonencode([

View file

@ -1,3 +1,10 @@
output "arn" {
description = "AWS IAM role ARN."
sensitive = false
value = aws_iam_role.main.id
}
# Deprecated since 1.1.0
output "iam_role_arn" { output "iam_role_arn" {
description = "AWS IAM role ARN." description = "AWS IAM role ARN."
sensitive = false sensitive = false