hashicorp-modules / terraform-tls-ssh-keypair-data

Terraform config for raw SSH key pair files
Mozilla Public License 2.0
0 stars 1 forks source link

Generated keys have linebreaks at end #4

Open rberlind opened 6 years ago

rberlind commented 6 years ago

The generated keys have a final linebreak at the end. This caused me problems when I included the SSH version of the public key in an Azure resource manager template in my Kubernetes Guide. I think we should use chomp to remove the final line break from all the keys. So, we would end up with expressions like ${chomp(tls_private_key.main.private_key_pem) and ${chomp(tls_private_key.main.public_key_openssh).

That being said, I wonder if the extra line break at the end indicates a bug in our TLS Provider's tls_private_key resource? I will file an issue there too.