hashicorp/terraform — pull request #695 by moredip (2014-12-18 09:31:33+00:00)
Title: add aws_key_pair resource

For now this only supports importing a key pair (by specifying a
public_key) property. In the future it'd be fairly trivial to support
key pair creation, with the private key returned as a computed property.

In real world usage you'd probably want to provide that public_key
property via a variable rather than hard-coding it into a terraform
config that'd end up in source control.