blob: 24c6c62f4466c7d32d9f58675a85a42ffed484cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
data "terraform_remote_state" "keypair" {
backend = var.backend
config = {
bucket = var.backend_state
prefix = "${var.region}/${var.environment}/keypair/terraform.tfstate"
}
}
data "terraform_remote_state" "network" {
backend = var.backend
config = {
bucket = var.backend_state
prefix = "${var.region}/${var.environment}/network/terraform.tfstate"
}
}
data "terraform_remote_state" "securitygroup" {
backend = var.backend
config = {
bucket = var.backend_state
prefix = "${var.region}/${var.environment}/securitygroup/terraform.tfstate"
}
}
data "openstack_images_image_v2" "vm_image" {
name = var.image
}
data "openstack_compute_flavor_v2" "flavor" {
name = var.flavor
}
data "openstack_networking_network_v2" "egress_network" {
name = var.network
}
|