provider "http" {} data "http" "remote_file" { url = "http:/example.com/file.txt" } resource "local_file" "downloaded_file" { content = data.http.remote_file.body filename = "${path.module}/downloaded_file.txt" }