terraform base64encode multiline

  Kiến thức lập trình

I have the following multiline variable in Terraform for PRIVATE_KEY encoded with base64encode function

oci_prv_key = <<EOT
-----BEGIN PRIVATE KEY-----
xxxxxxxxx
xxxxxxxx
xxxxxxxxx
xxxxxxxxx
-----END PRIVATE KEY-----
EOT

when I decode the variable using the function base64decode

the heredoc marker <<EOT and EOT are included in the value, how can I rectify this behavior?

it’s supposed or I assume, the value should only have the private key without the heredoc markers and beginning and end or string

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT