archive_file

    0

    0

    lucycodes42

    Terraform snippets

    This code creates an archive of the init.tpl file in the module's files directory.

    Shortcut: tf_archive_file

    data "archive_file" "${init}" {
       type        = "zip"
       source_file = "\${path.module}/init.tpl"
       output_path = "\${path.module}/files/init.zip"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.