-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ED25519 EC2 Key Pair is not in valid OpenSSH public key format #24025
Comments
I was able to work around with resource "aws_key_pair" "key" {
key_name = "key"
public_key = trimspace(tls_private_key.bastion.public_key_openssh)
} |
yes, it works with |
Hey @blobcode 👋 It looks like this is ultimately a result of the TLS provider adding a newline at the end of the That said, in addition to the Given that there's a couple of workarounds here, and the note above regarding the TLS provider, we'll close this issue for now. If you feel we've done this in error, please do let us know! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
debug output
Expected Behavior
A ED25519 EC2 keypair should have been created.
Actual Behavior
Errored out.
Steps to Reproduce
terraform apply
Important Factoids
This seems to work with
algorithm = "RSA"
The text was updated successfully, but these errors were encountered: