Created
September 4, 2021 08:35
-
-
Save perf3ktion/b9ed88e3a337c1ddad4ca3cd9bb2a66b to your computer and use it in GitHub Desktop.
Example TF to copy files from local source to provisioned AWS resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_instance" "web" { | |
# ... | |
# Copies the myapp.conf file to /etc/myapp.conf | |
provisioner "file" { | |
source = "conf/myapp.conf" | |
destination = "/etc/myapp.conf" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment