Skip to content

Commit

Permalink
* 2.4.1 -- 2025-08-01
Browse files Browse the repository at this point in the history
  - rolesanywhere: fix account_alias
  • Loading branch information
badra001 committed Aug 1, 2025
1 parent d566ebd commit 6c5b63c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ tag: 2.0.1
* 2.4.0 -- 2025-07-29
- move things to common
- make submodule rolesanywhere

* 2.4.1 -- 2025-08-01
- rolesanywhere: fix account_alias
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.4.0"
_module_version = "2.4.1"
}
2 changes: 1 addition & 1 deletion rolesanywhere/aws_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "local_file" "aws_config_file" {
file_permission = "0644"
directory_permission = "0755"
content = templatefile("${path.module}/aws_config.tpl", {
account_alias = var.account_alias
account_alias = local.account_alias
role_name = local.role_name
role_arn = aws_iam_role.role.arn
trust_anchor_arn = local.this_trust_arn
Expand Down
2 changes: 1 addition & 1 deletion rolesanywhere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ locals {
account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id
region = data.aws_region.current.name
account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew"
account_alias = var.account_alias != "" && var.account_alias != null ? var.account_alias : "none"
account_alias = var.account_alias != "" ? var.account_alias : data.aws_iam_account_alias.current.account_alias

role_name = format("%v%v", lookup(local._prefixes, "role", ""), var.role_name)
role_description = var.role_description == null ? var.role_name : var.role_description
Expand Down

0 comments on commit 6c5b63c

Please sign in to comment.