Skip to content

Commit

Permalink
Implement --wrap=0 within terraform itself
Browse files Browse the repository at this point in the history
  • Loading branch information
sodre committed Jan 6, 2021
1 parent 26543b0 commit c56e18a
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 c56e18a

Please sign in to comment.