1.5 KiB
1.5 KiB
| page_title | subcategory | description |
|---|---|---|
| file_local_snapshot Data Source - file | File LocalSnapshot data source. This data source retrieves the contents of a file from the output of a file_local_snapshot datasource.Warning! Using this resource places the plain text contents of the snapshot in your state file. |
file_local_snapshot (Data Source)
File LocalSnapshot data source. This data source retrieves the contents of a file from the output of a file_local_snapshot datasource.Warning! Using this resource places the plain text contents of the snapshot in your state file.
Schema
Required
contents(String, Sensitive) The contents of the snapshot to retrieve. This could be any gzip compressed base64 encoded data. If the data isn't compressed, set the decompress argument to false, or leave it blank. If the decompress argument is false, the data will be the base64 decoded contents.
Optional
decompress(Boolean) Whether or not to decompress the contents. If left empty, this will default to false.
Read-Only
data(String, Sensitive) The resulting data output. This is the plain text representation of the contents attribute. This is computed by first decoding the data from base64, then decompressing the resulting gzip. If decompress is false, then this will be the base64 decoded version of the contents.id(String) Unique identifier for the datasource. The SHA256 hash of the contents.