Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 8, 2024
1 parent 674d2e5 commit 5824cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion acmpca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ the ARN if completed. You'll use the ARN for an AWS LB Listener.
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 2.1.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.1.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6.0 |
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.1.0 |

## Providers
Expand All @@ -45,7 +46,7 @@ the ARN if completed. You'll use the ARN for an AWS LB Listener.
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0 |
| <a name="provider_local"></a> [local](#provider\_local) | >= 2.1.0 |
| <a name="provider_null"></a> [null](#provider\_null) | >= 3.1.0 |
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.6.0 |
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 3.1.0 |

## Modules
Expand Down
2 changes: 1 addition & 1 deletion acmpca/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ locals {

output_file_directory = var.output_file_directory != null ? var.output_file_directory : format("%v/%v", path.root, "certs")
_cert_filename = coalesce(var.certificate_cn, local.cert_dns)
generate_cert_filename = try(regex("[^a-zA-Z0-9_\\.-]", local._cert_filename), "") != ""
generate_cert_filename = try(regex("[^a-zA-Z0-9_\\.-]", local._cert_filename), "") != "" && var.create_files
cert_filename = local.generate_cert_filename ? random_uuid.filename[0].result : local._cert_filename
}

Expand Down

0 comments on commit 5824cd7

Please sign in to comment.