FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

archive_file

Generates an archive from content, a file, or directory of files.

Example Usage

resource "archive_file" "init" {
    type = "zip"
    source_content_filename = "${path.module}/init.tpl"
    output_path = "${path.module}/files/init.zip"
}

Argument Reference

The following arguments are supported:

NOTE: One of source_content_filename (with source_content), source_file, or source_dir must be specified.

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io