Skip to content
Snippets Groups Projects
Commit f4dc14bc authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

keypair creation

parent cf92fcd0
No related branches found
No related tags found
No related merge requests found
variable "keypair_name" {default = "string"}
variable "ssh_public_key" {default = "string"}
resource "openstack_compute_keypair_v2" "keypair" {
name = var.keypair_name
public_key = file(var.ssh_public_key)
}
output "keypair_name" {
value = var.keypair_name
}
output "public_key" {
value = file(var.ssh_public_key)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment