variable auth_url {}
variable tenant_id {}
variable tenant_name {}
variable region {}
variable keypair_name {}
variable public_key {}

provider "openstack" {
  auth_url      = "${ var.auth_url }"
  tenant_id     = "${ var.tenant_id }"
  tenant_name   = "${ var.tenant_name }"
}

resource "openstack_compute_keypair_v2" "keypair" {
  region        = "${ var.region }"
  name          = "${ var.keypair_name }"
  public_key    = "${ file(var.public_key) }"
}

output "keypair_name" {
	value = "${ openstack_compute_keypair_v2.keypair.name }"
}

output "region" {
	value = "${ openstack_compute_keypair_v2.keypair.region }"
}

variable auth_url {}
variable tenant_id {}
variable tenant_name {}
variable keypair_name {}
variable public_key {}

provider "openstack" {
  auth_url      = "${ var.auth_url }"
  tenant_id     = "${ var.tenant_id }"
  tenant_name   = "${ var.tenant_name }"
}

resource "openstack_compute_keypair_v2" "keypair" {
  name          = "${ var.keypair_name }"
  public_key    = "${ file(var.public_key) }"
}

output "keypair_name" {
	value = "${ openstack_compute_keypair_v2.keypair.name }"
}

Remove region from openstack keypair module
Remove region from openstack keypair module

ContainerSolutions/microservices-infrastructure,sehqlr/mantl,eirslett/microservices-infrastructure,ilboud/microservices-infrastructure,abn/microservices-infrastructure,Parkayun/microservices-infrastructure,kenjones-cisco/microservices-infrastructure,benschumacher/microservices-infrastructure,CiscoCloud/microservices-infrastructure,chrislovecnm/microservices-infrastructure,Parkayun/microservices-infrastructure,chrislovecnm/microservices-infrastructure,futuro/microservices-infrastructure,z00223295/microservices-infrastructure,revpoint/microservices-infrastructure,ilboud/microservices-infrastructure,z00223295/microservices-infrastructure,arminc/microservices-infrastructure,KaGeN101/mantl,chrislovecnm/microservices-infrastructure,TeaBough/microservices-infrastructure,huodon/microservices-infrastructure,abn/microservices-infrastructure,liangyali/microservices-infrastructure,noelbk/microservices-infrastructure,benschumacher/microservices-infrastructure,phnmnl/mantl,phnmnl/mantl,heww/microservices-infrastructure,CiscoCloud/microservices-infrastructure,CiscoCloud/mantl,ianscrivener/microservices-infrastructure,mantl/mantl,CiscoCloud/mantl,revpoint/microservices-infrastructure,KaGeN101/mantl,kindlyops/microservices-infrastructure,heww/microservices-infrastructure,liangyali/microservices-infrastructure,arminc/microservices-infrastructure,datascienceinc/mantl,bitium/mantl,linearregression/microservices-infrastructure,SillyMoo/microservices-infrastructure,mehulsbhatt/microservices-infrastructure,datascienceinc/mantl,linearregression/microservices-infrastructure,linearregression/microservices-infrastructure,gtcno/microservices-infrastructure,ianscrivener/microservices-infrastructure,gtcno/microservices-infrastructure,huodon/microservices-infrastructure,ddONGzaru/microservices-infrastructure,eirslett/microservices-infrastructure,kenjones-cisco/microservices-infrastructure,kindlyops/microservices-infrastructure,benschumacher/microservices-infrastructure,huodon/microservices-infrastructure,mehulsbhatt/microservices-infrastructure,mantl/mantl,noelbk/microservices-infrastructure,futuro/microservices-infrastructure,z00223295/microservices-infrastructure,sudhirpandey/microservices-infrastructure,eirslett/microservices-infrastructure,huodon/microservices-infrastructure,sudhirpandey/microservices-infrastructure,benschumacher/microservices-infrastructure,SillyMoo/microservices-infrastructure,arminc/microservices-infrastructure,abn/microservices-infrastructure,remmelt/microservices-infrastructure,ludovicc/microservices-infrastructure,ContainerSolutions/microservices-infrastructure,ludovicc/microservices-infrastructure,chrislovecnm/microservices-infrastructure,mehulsbhatt/microservices-infrastructure,huodon/microservices-infrastructure,ianscrivener/microservices-infrastructure,bitium/mantl,ianscrivener/microservices-infrastructure,benschumacher/microservices-infrastructure,TeaBough/microservices-infrastructure,sehqlr/mantl,chrislovecnm/microservices-infrastructure,revpoint/microservices-infrastructure,ddONGzaru/microservices-infrastructure,remmelt/microservices-infrastructure,ilboud/microservices-infrastructure,ianscrivener/microservices-infrastructure