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

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
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 ==
 
* {{terraform provider archive}}
 
* {{terraform provider archive}}
* {{terraform providers}}
+
* {{Terraform data sources}}
 +
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 12:54, 9 October 2024

Advertising: