Attaching BVS (iSCSI) on Terraform deployment
Summary
Attaching BVS (iSCSI) on Terraform deploymentContent
Hi,
see my actual approach bellow (with null resource and triggers). Anybody using smarter procedure ?
resource "baremetal_core_volume" "demo" {
count = "${var.count}"
availability_domain = "${lookup(data.baremetal_identity_availability_domains.ADs.availability_domains[var.locked],"name")}"
compartment_id = "${var.compartment_ocid}"
size_in_mbs = "${var.volume_size_in_mbs}"
}
resource "baremetal_core_volume_backup" "demo" {
count = "${var.count}"
volume_id = "${baremetal_core_volume.demo.id}"
display_name = "demo-backup"
}
resource "baremetal_core_volume_attachment" "attach-demo" {
count = "${var.count}"
attachment_type = "iscsi"
compartment_id = "${var.compartment_ocid}"
instance_id = "${baremetal_core_instance.demo.id}"