Resource: aws_storagegateway_cache

Manages an AWS Storage Gateway cache.

Example Usage

resource "aws_storagegateway_cache" "example" {
  disk_id     = data.aws_storagegateway_local_disk.example.id
  gateway_arn = aws_storagegateway_gateway.example.arn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_storagegateway_cache using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:). For example:

import {
  to = aws_storagegateway_cache.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_cache using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:). For example:

% terraform import aws_storagegateway_cache.example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0