connection_provisioner

    0

    0

    lucycodes42

    Terraform snippets

    The provisioner "file" is using SSH to copy the myapp.conf file from the conf folder to the /etc/myapp.conf directory as the root user.

    Shortcut: tf_connection_provisioner

    # Copies the file as the root user using SSH
    provisioner "file" {
       source      = "conf/myapp.conf"
       destination = "/etc/myapp.conf"
       connection {
           type        = "ssh"
           user        = "root"
           password    = "samplePasswordHere"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.