|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "archive_file Resource - terraform-provider-archive" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + NOTE: This resource is deprecated, use data source instead. |
| 7 | +--- |
| 8 | + |
| 9 | +# archive_file (Resource) |
| 10 | + |
| 11 | +**NOTE**: This resource is deprecated, use data source instead. |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +<!-- schema generated by tfplugindocs --> |
| 16 | +## Schema |
| 17 | + |
| 18 | +### Required |
| 19 | + |
| 20 | +- `output_path` (String) The output of the archive file. |
| 21 | +- `type` (String) The type of archive to generate. NOTE: `zip` is supported. |
| 22 | + |
| 23 | +### Optional |
| 24 | + |
| 25 | +- `excludes` (Set of String) Specify files to ignore when reading the `source_dir`. |
| 26 | +- `output_file_mode` (String) String that specifies the octal file mode for all archived files. For example: `"0666"`. Setting this will ensure that cross platform usage of this module will not vary the modes of archived files (and ultimately checksums) resulting in more deterministic behavior. |
| 27 | +- `source` (Block Set) Specifies attributes of a single source file to include into the archive. (see [below for nested schema](#nestedblock--source)) |
| 28 | +- `source_content` (String) Add only this content to the archive with `source_content_filename` as the filename. |
| 29 | +- `source_content_filename` (String) Set this as the filename when using `source_content`. |
| 30 | +- `source_dir` (String) Package entire contents of this directory into the archive. |
| 31 | +- `source_file` (String) Package this file into the archive. |
| 32 | + |
| 33 | +### Read-Only |
| 34 | + |
| 35 | +- `id` (String) The sha1 checksum hash of the output. |
| 36 | +- `output_base64sha256` (String) The base64-encoded SHA256 checksum of output archive file. |
| 37 | +- `output_md5` (String) The MD5 checksum of output archive file. |
| 38 | +- `output_sha` (String) The SHA1 checksum of output archive file. |
| 39 | +- `output_size` (Number) The byte size of the output archive file. |
| 40 | + |
| 41 | +<a id="nestedblock--source"></a> |
| 42 | +### Nested Schema for `source` |
| 43 | + |
| 44 | +Required: |
| 45 | + |
| 46 | +- `content` (String) Add this content to the archive with `filename` as the filename. |
| 47 | +- `filename` (String) Set this as the filename when declaring a `source`. |
| 48 | + |
| 49 | + |
0 commit comments