terraform-external-module-artifact icon indicating copy to clipboard operation
terraform-external-module-artifact copied to clipboard

Document Local Development

Open osterman opened this issue 6 years ago • 0 comments

what

  • Document how to refer to a local file rather than a remote artifact

why

  • When using terraform-external-module-artifact together with lambdas, sometimes for local development it's convenient to refer to a local file rather than an artifact

how to

Just pass the url input with something like file:///my/home/directory/lambda.zip

module "example" {
  source     = "git::https://github.com/cloudposse/terraform-external-module-artifact.git?ref=master"
  filename    = "test.zip"
  git_ref     = "example"
  module_name = "terraform-external-module-artifact"
  module_path = "${path.module}"
  url         = "file:///tmp/artifact.zip"
}

osterman avatar Jan 29 '19 17:01 osterman