Skip to content

Commit

Permalink
* 2.4.3 -- 2025-08-06
Browse files Browse the repository at this point in the history
  - rolesanywhere: add file_prefix to generated config file
  • Loading branch information
badra001 committed Aug 6, 2025
1 parent 653e4ee commit 97c510d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ tag: 2.0.1

* 2.4.2 -- 2025-08-05
- rolesanywhere: add file_prefix and file_prefix_separator

* 2.4.3 -- 2025-08-06
- rolesanywhere: add file_prefix to generated config file
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.2"
_module_version = "2.4.3"
}
2 changes: 1 addition & 1 deletion rolesanywhere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ prefix is not used.
| <a name="input_component_tags"></a> [component\_tags](#input\_component\_tags) | Additional tags for Components (role, policy) | `map(map(string))` | <pre>{<br/> "policy": {},<br/> "role": {}<br/>}</pre> | no |
| <a name="input_contact_group_email"></a> [contact\_group\_email](#input\_contact\_group\_email) | Email of contact group | `string` | n/a | yes |
| <a name="input_contact_users"></a> [contact\_users](#input\_contact\_users) | Username of contact(s) | `list(string)` | `[]` | no |
| <a name="input_filename_prefix"></a> [filename\_prefix](#input\_filename\_prefix) | Prefix to include in the filename leading to {prefix}{separator}{rolename}.{ext} | `string` | `null` | no |
| <a name="input_filename_prefix"></a> [filename\_prefix](#input\_filename\_prefix) | Prefix to include in the filename leading to {prefix}{separator}{rolename}.{ext} for certificate,key, and generated config files | `string` | `null` | no |
| <a name="input_filename_prefix_separator"></a> [filename\_prefix\_separator](#input\_filename\_prefix\_separator) | Prefix separator (default: .) | `string` | `"."` | no |
| <a name="input_import_to_acm"></a> [import\_to\_acm](#input\_import\_to\_acm) | Flag to import certificate to ACM, used primarily for tracking expiration and establishing contact details | `bool` | `false` | no |
| <a name="input_inline_policies"></a> [inline\_policies](#input\_inline\_policies) | List of IAM Policy Document objects to include in this role. Format is {name=name,policy=policy-json} | `list(object({ name = string, policy = string }))` | `[]` | no |
Expand Down
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 @@ locals {
}

resource "local_file" "aws_config_file" {
filename = format("%v/%v/%v.%v", path.root, "certs", local.role_name, "aws_config")
filename = format("%v/%v/%v%v.%v", path.root, "certs", local.filename_prefix, local.role_name, "aws_config")
file_permission = "0644"
directory_permission = "0755"
content = templatefile("${path.module}/aws_config.tpl", {
Expand Down
2 changes: 1 addition & 1 deletion rolesanywhere/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ variable "import_to_acm" {
}

variable "filename_prefix" {
description = "Prefix to include in the filename leading to {prefix}{separator}{rolename}.{ext}"
description = "Prefix to include in the filename leading to {prefix}{separator}{rolename}.{ext} for certificate,key, and generated config files"
type = string
default = null
}
Expand Down

0 comments on commit 97c510d

Please sign in to comment.