Terraform data source: archive file

From wikieduonline
Jump to navigation Jump to search

https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file

# Archive a single file.

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

See also

Advertising: