Difference between revisions of "Terraform data source: archive file"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
 
https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file
 
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 ==
 
== See also ==

Revision as of 12:50, 9 October 2024

Advertising: