Difference between revisions of "Terraform data source: archive file"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
data "archive_file" "init" { | data "archive_file" "init" { | ||
− | type = "zip" | + | type = "[[zip]]" |
source_file = "${path.module}/init.tpl" | source_file = "${path.module}/init.tpl" | ||
output_path = "${path.module}/files/init.zip" | output_path = "${path.module}/files/init.zip" | ||
Line 12: | Line 12: | ||
== See also == | == See also == | ||
* {{terraform provider archive}} | * {{terraform provider archive}} | ||
− | * {{ | + | * {{Terraform data sources}} |
+ | |||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 12:54, 9 October 2024
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[edit]
Advertising: