Difference between revisions of "Terraform data source: archive file"
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
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
- Terraform provider: archive,
archive_file
- Terraform provider:
AWS, Cloudflare
,GoogleWorkspace
,Kubernetes, Helm, .terraform/providers/
,template
,tfe
,providers.tf, dns, hashicorp/, hashicorp/tls
, Terraform provider versioning, Libvirt, datadog,terraform providers, required_version, onepassword
,rancher2
,time, terraform.tf
Advertising: