Difference between revisions of "Terraform resource: aws key pair"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
* <code>[[aws ec2 create-key-pair]]</code>
 
* <code>[[aws ec2 create-key-pair]]</code>
 
* <code>[[ssh-keygen -t]] ed25519 -f ~/.ssh/your_new_ed25519_key</code>
 
* <code>[[ssh-keygen -t]] ed25519 -f ~/.ssh/your_new_ed25519_key</code>
[[tls_private_key]]
+
* [[Terraform resource: tls private key]]
  
 
== See also ==
 
== See also ==

Revision as of 10:40, 25 July 2024

aws_key_pair import, do not create, an existing user-supplied key pair.


resource "aws_key_pair" "deployer" {
  key_name   = "deployer-key"
  public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQz1x2cEikKDEY0aIj41qgxMCP/iteneqXSIFZBp5vizPvaoIR3Um9xK7PGoW8giupGn+EPuxIA4cDM4vzOqOkiMPhz5XK0whEjkVzTo4+S0puvDZuwIsdiW9mxhJc7tgBNL0cYlWSYVkz4G/fslNfRPW5mYAM49f4fhtxPb5ok4Q2Lg9dPKVHO/Bgeu5woMc7RY0p1ej6D4CKFE6lymSDJpW0YHX/wqE9+cfEauh7xZcG0q9t2ta6F6fmX0agvpFyZo8aFbXeUBr7osSCJNgvavWbM/06niWrOvYX2xwWdhXmXSrbX8ZbabVohBK41 [email protected]"
}


Errors

Related

See also

Advertising: