feat(module): add output variable arn
and deprecate output variable iam_role_arn
This commit is contained in:
parent
336e7703d6
commit
441295d140
3 changed files with 19 additions and 2 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -2,8 +2,18 @@
|
|||
|
||||
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
|
||||
|
||||
### Added
|
||||
|
||||
- initial import
|
||||
- Initial import.
|
||||
|
|
|
@ -11,7 +11,7 @@ continuous integration tasks on AWS.
|
|||
|
||||
``` hcl
|
||||
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
|
||||
policy_statements = jsonencode([
|
||||
|
|
|
@ -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" {
|
||||
description = "AWS IAM role ARN."
|
||||
sensitive = false
|
||||
|
|
Loading…
Add table
Reference in a new issue