Archive - File: Example Usage
Archive - File: Example Usage
Archive - File: Example Usage
» Example Usage
source {
content = "${data.template_file.vimrc.rendered}"
filename = ".vimrc"
}
source {
content = "${data.template_file.ssh_config.rendered}"
filename = ".ssh/config"
}
}
Note regarding symbolic links: Due to a bug, the archive_file data source
does not currently create proper zip archives when the source includes symbolic
links (also known as ”symlinks”). Please see GitHub Issue #6 for more details
and workaround options. This message will be removed when the bug is fixed.
» Argument Reference
1
• output_path - (Required) The output of the archive file.
• source_content - (Optional) Add only this content to the archive with
source_content_filename as the filename.
• source_content_filename - (Optional) Set this as the filename when
using source_content.
• source_file - (Optional) Package this file into the archive.
• source_dir - (Optional) Package entire contents of this directory into the
archive.
• source - (Optional) Specifies attributes of a single source file to include
into the archive.
The source block supports the following:
• content - (Required) Add this content to the archive with filename as
the filename.
• filename - (Required) Set this as the filename when declaring a source.
» Attributes Reference