Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Attaching BVS (iSCSI) on Terraform deployment

edited Aug 30, 2017 7:00AM in OCI - General 2 comments

Summary

Attaching BVS (iSCSI) on Terraform deployment

Content

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}"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!