Skip to content

Commit 62e06f5

Browse files
Adam SirAdam Sir
authored andcommitted
updated docs to show 'excludes' param
1 parent eb2e166 commit 62e06f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

website/docs/d/archive_file.html.markdown

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ data "archive_file" "init" {
2121
output_path = "${path.module}/files/init.zip"
2222
}
2323
24-
# Archive multiple files.
24+
# Archive multiple files and exclude file.
2525
2626
data "archive_file" "dotfiles" {
2727
type = "zip"
2828
output_path = "${path.module}/files/dotfiles.zip"
29+
excludes = [ "${path.module}/unwanted.zip" ]
2930
3031
source {
3132
content = "${data.template_file.vimrc.rendered}"
@@ -67,6 +68,8 @@ NOTE: One of `source`, `source_content_filename` (with `source_content`), `sourc
6768

6869
* `source` - (Optional) Specifies attributes of a single source file to include into the archive.
6970

71+
* `excludes` - (Optional) Specify files to ignore when reading the `source_dir`.
72+
7073
The `source` block supports the following:
7174

7275
* `content` - (Required) Add this content to the archive with `filename` as the filename.

0 commit comments

Comments
 (0)