» Data Source: aws_storagegateway_local_disk

Retrieve information about a Storage Gateway local disk. The disk identifier is useful for adding the disk as a cache or upload buffer to a gateway.

» Example Usage

data "aws_storagegateway_local_disk" "test" {
  disk_path   = "${aws_volume_attachment.test.device_name}"
  gateway_arn = "${aws_storagegateway_gateway.test.arn}"
}

» Argument Reference

  • disk_path - (Required) The device path of the local disk to retrieve. For example, /dev/sdb or /dev/xvdb.
  • gateway_arn - (Required) The Amazon Resource Name (ARN) of the gateway.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • disk_id - The disk identifier. e.g. pci-0000:03:00.0-scsi-0:0:0:0
  • id - The disk identifier. e.g. pci-0000:03:00.0-scsi-0:0:0:0