Manages an AWS Storage Gateway working storage.
resource "aws_storagegateway_working_storage" "example" {
disk_id = data.aws_storagegateway_local_disk.example.id
gateway_arn = aws_storagegateway_gateway.example.arn
}
This resource supports the following arguments:
disk_id
- (Required) Local disk identifier. For example, pci-0000:03:00.0-scsi-0:0:0:0
.gateway_arn
- (Required) The Amazon Resource Name (ARN) of the gateway.This resource exports the following attributes in addition to the arguments above:
id
- Combined gateway Amazon Resource Name (ARN) and local disk identifier.In Terraform v1.5.0 and later, use an import
block to import aws_storagegateway_working_storage
using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:
). For example:
import {
to = aws_storagegateway_working_storage.example
id = "arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0"
}
Using terraform import
, import aws_storagegateway_working_storage
using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:
). For example:
% terraform import aws_storagegateway_working_storage.example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0