Skip to content

Commit

Permalink
* 1.0.3 -- 2024-04-23
Browse files Browse the repository at this point in the history
  - add output directory for certificates
  • Loading branch information
badra001 committed Apr 23, 2024
1 parent ec762f1 commit f584cb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

* 1.0.2 -- 2024-01-10
- update docs for acmpca-eks-cert-manager

* 1.0.3 -- 2024-04-23
- add output directory for certificates
8 changes: 4 additions & 4 deletions acmpca/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,31 @@ locals {

resource "local_sensitive_file" "certificate_key" {
count = var.create_files && local.output_file_directory != null ? 1 : 0
filename = local.filename_key
filename = format("%v/%v", local.output_file_directory, local.filename_key)
file_permission = "0644"
directory_permission = "0755"
content = tls_private_key.certificate.private_key_pem
}

resource "local_sensitive_file" "certificate_csr" {
count = var.create_files && local.output_file_directory != null ? 1 : 0
filename = local.filename_csr
filename = format("%v/%v", local.output_file_directory, local.filename_csr)
file_permission = "0644"
directory_permission = "0755"
content = tls_cert_request.certificate.cert_request_pem
}

resource "local_sensitive_file" "certificate_cert" {
count = var.create_files && local.output_file_directory != null ? 1 : 0
filename = local.filename_crt
filename = format("%v/%v", local.output_file_directory, local.filename_crt)
file_permission = "0644"
directory_permission = "0755"
content = aws_acmpca_certificate.certificate.certificate
}

resource "local_sensitive_file" "certificate_cert_chain" {
count = var.create_files && local.output_file_directory != null ? 1 : 0
filename = local.filename_chain
filename = format("%v/%v", local.output_file_directory, local.filename_chain)
file_permission = "0644"
directory_permission = "0755"
content = local.certificate_chain
Expand Down
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 = "1.0.2"
_module_version = "1.0.3"
}

0 comments on commit f584cb4

Please sign in to comment.