AWS Amazon S3 Working Storage

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

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

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.

Parameters

Example Usage (from GitHub)

github-iconasrkata/SebastianUA-terraform
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

github-iconniveklabs/aws
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.