Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 23, 2023 17:48
Show Gist options
  • Save hendrixroa/366c4886bdfe17ebf353807f7c6cbc72 to your computer and use it in GitHub Desktop.
Save hendrixroa/366c4886bdfe17ebf353807f7c6cbc72 to your computer and use it in GitHub Desktop.
Packaging archive to zip
data "archive_file" "main" {
type = "zip"
source_dir = var.code_location
output_path = "${path.module}/.terraform/archive_files/${var.filename}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment