Skip to content

A terraform provider to allow for download of remote files over many protocols

License

Notifications You must be signed in to change notification settings

simplecatsoftware/terraform-provider-remotefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-provider-remotefile

A terraform provider to allow for download of remote files over many protocols

Installation

Mac and Linux

Run the install script on the command line, the plugin will be installed to your user terraform plugins directory.

curl -s https://raw.githubusercontent.com/simplecatsoftware/terraform-provider-remotefile/master/scripts/install.sh | bash

Usage

The initial use case is to allow for copying files from source to another while also checking that hashes are valid.

Getting a remote file

data "remotefile_read" "http_file" {
  source = "https://github.com/simplecatsoftware/lambda-http-example/archive/master.zip"
}

resource "aws_lambda_function" "http_lambda" {
  function_name = "test_http_lambda"
  handler = "program.Function"
  role = aws_iam_role.http_lambda.arn
  runtime = "ruby2.5"
  source_code_hash = data.remotefile.http_file.actual_sha256
  filename = data.remotefiles.http_file.local_path
}

About

A terraform provider to allow for download of remote files over many protocols

Resources

License

Stars

Watchers

Forks

Packages

No packages published