Skip to content

Commit

Permalink
Merge pull request #3 from zeroae/i/3-base64-wrap
Browse files Browse the repository at this point in the history
Can run this module under Alpine / Busybox
  • Loading branch information
sodre authored Jan 6, 2021
2 parents 26543b0 + c56e18a commit 97e80cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module "encrypt" {
command = <<-EOF
public_key_pem_file=$(mktemp)
printenv PUBLIC_KEY_PEM > $public_key_pem_file
printenv CONTENT_B64 | base64 -d | openssl ${local.openssl_command[var.algorithm]} | base64 --wrap=0
printenv CONTENT_B64 | base64 -d | openssl ${local.openssl_command[var.algorithm]} | base64
rm -f $public_key_file
EOF
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "result" {
description = "The base64-encoded encrypted content."
value = [module.encrypt.stdout][module.encrypt.exitstatus]
value = [replace(module.encrypt.stdout, "\n", "")][module.encrypt.exitstatus]
}

0 comments on commit 97e80cb

Please sign in to comment.