diff --git a/main.tf b/main.tf index ac4705f0759e14362c5ada0e898d951c196b9db6..e8805382f651ce117357a3d034432e62f10825c2 100644 --- a/main.tf +++ b/main.tf @@ -55,7 +55,7 @@ output "keypair_name" { } data "openstack_networking_network_v2" "external_net" {name = var.external_network} -data "openstack_blockstorage_volume_v2" "disk" {name = var.data_volume} +data "openstack_blockstorage_volume_v3" "disk" {name = var.data_volume} # runs the ohpc-instance module - creates ohpc instance using variables defined above # calls functions from dmz-network, import-keypair, and floating-ip-address modules to get values created there for use @@ -71,7 +71,7 @@ module "create-ohpc-instance" { floating_ip_ohpc = module.floating-ip-address.ohpc_address ohpc_user = var.ohpc_user ssh_private_key = var.ssh_private_key - vol_id = data.openstack_blockstorage_volume_v2.disk.id + vol_id = data.openstack_blockstorage_volume_v3.disk.id } # runs the ood-instance module - creates ood instance using variables defined above