local_sensitive_file (Data Source)

Reads a file that contains sensitive data, from the local filesystem.

The attributes exposed by this data source are marked as sensitive.

Example Usage

data "local_sensitive_file" "foo" {
  filename = "${path.module}/foo.bar"
}

resource "aws_s3_object" "shared_zip" {
  bucket  = "my-bucket"
  key     = "my-key"
  content = data.local_sensitive_file.foo.content
}

Schema

Required

Read-Only