Resource: yet_settings_storage

Where Drive keeps the company's files: a bucket in its own AWS account, reached with yet_settings_connection_aws's key. Yet writes to it once, and removes what it wrote, to be sure the key may use it.

Note: Destroying it sends Drive back to keeping the files itself. The bucket, and what is in it, stay in the company's account.

Example Usage

# Drive's files in the company's own bucket, under yet/drive.
resource "yet_settings_storage" "acme" {
  bucket = "acme-drive"
  prefix = "yet/drive"

  depends_on = [yet_settings_connection_aws.acme]
}

Schema

Required

  • bucket (String) The S3 bucket's name.

Optional

  • prefix (String) A folder inside the bucket, so it can be shared with other things: yet/drive.

Read-Only

  • id (String) The company's slug.

Import

In Terraform v1.5.0 and later, with an import block:

import {
  to = yet_settings_storage.acme
  id = "acme"
}

With terraform import:

# The company, by its slug.
terraform import yet_settings_storage.acme acme