diff --git a/CHANGELOG.md b/CHANGELOG.md index e47584b..c37bf85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/common/version.tf b/common/version.tf index 930d737..31e4b38 100644 --- a/common/version.tf +++ b/common/version.tf @@ -1,3 +1,3 @@ locals { - _module_version = "2.4.2" + _module_version = "2.4.3" } diff --git a/rolesanywhere/README.md b/rolesanywhere/README.md index 9ecd7c8..89fe581 100644 --- a/rolesanywhere/README.md +++ b/rolesanywhere/README.md @@ -118,7 +118,7 @@ prefix is not used. | [component\_tags](#input\_component\_tags) | Additional tags for Components (role, policy) | `map(map(string))` |
{
"policy": {},
"role": {}
}
| no | | [contact\_group\_email](#input\_contact\_group\_email) | Email of contact group | `string` | n/a | yes | | [contact\_users](#input\_contact\_users) | Username of contact(s) | `list(string)` | `[]` | no | -| [filename\_prefix](#input\_filename\_prefix) | Prefix to include in the filename leading to {prefix}{separator}{rolename}.{ext} | `string` | `null` | no | +| [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 | | [filename\_prefix\_separator](#input\_filename\_prefix\_separator) | Prefix separator (default: .) | `string` | `"."` | no | | [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 | | [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 | diff --git a/rolesanywhere/aws_config.tf b/rolesanywhere/aws_config.tf index 4dffdcc..9519b1c 100644 --- a/rolesanywhere/aws_config.tf +++ b/rolesanywhere/aws_config.tf @@ -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", { diff --git a/rolesanywhere/variables.tf b/rolesanywhere/variables.tf index 0eb5c07..ef1dc80 100644 --- a/rolesanywhere/variables.tf +++ b/rolesanywhere/variables.tf @@ -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 }