forked from garutilorenzo/oracle-cloud-terraform-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
22 lines (19 loc) · 707 Bytes
/
data.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
data "template_cloudinit_config" "ubuntu_init" {
gzip = true
base64_encode = true
part {
content_type = "text/x-shellscript"
content = templatefile("${path.module}/files/oci-ubuntu-install.sh", {})
}
}
data "oci_core_instance_pool_instances" "ubuntu_instance_pool_instances" {
depends_on = [
oci_core_instance_pool.ubuntu_instance_pool,
]
compartment_id = var.compartment_ocid
instance_pool_id = oci_core_instance_pool.ubuntu_instance_pool.id
}
data "oci_core_instance" "ubuntu_instance_pool_instances_ips" {
count = var.instance_pool_size
instance_id = data.oci_core_instance_pool_instances.ubuntu_instance_pool_instances.instances[count.index].id
}