AWS Amazon S3 Working Storage

This page shows how to write Terraform for Amazon S3 Working Storage and write them securely.


Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.


Terraform Example (aws_storagegateway_working_storage)

Manages an AWS Storage Gateway working storage.

NOTE: The Storage Gateway API provides no method to remove a working storage disk. Destroying this Terraform resource does not perform any Storage Gateway actions.


Example Usage (from GitHub)

resource "aws_storagegateway_working_storage" "storagegateway_working_storage" {
  count = var.enable_storagegateway_working_storage ? 1 : 0

  gateway_arn = var.storagegateway_working_storage_gateway_arn != "" ? var.storagegateway_working_storage_gateway_arn : (var.enable_storagegateway_gateway ? aws_storagegateway_gateway.storagegateway_gateway[count.index].arn : null)
  disk_id     = var.storagegateway_working_storage_disk_id

resource "aws_storagegateway_working_storage" "this" {
  disk_id     = var.disk_id
  gateway_arn = var.gateway_arn

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Amazon S3 Working Storage?

AWS Amazon S3 Working Storage is a resource for Amazon S3 of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Amazon S3 Working Storage?

For Terraform, the asrkata/SebastianUA-terraform and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.