From 7f49b01c9766ffdc427afe18fe3cd212ca077ee1 Mon Sep 17 00:00:00 2001 From: Andrew Maddaford Date: Mon, 24 Jul 2017 11:08:50 +0100 Subject: [PATCH] Quote paths to work with paths that have spaces --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index c090237..5496d97 100644 --- a/main.tf +++ b/main.tf @@ -34,9 +34,9 @@ resource "null_resource" "buildlambdazip" { triggers { key = "${uuid()}" } provisioner "local-exec" { command = < ${path.module}/tmp/vars.ini + mkdir -p "${path.module}/lambda" && mkdir -p "${path.module}/tmp" + cp "${path.module}/ebs_bckup/ebs_bckup.py" "${path.module}/tmp/ebs_bckup.py" + echo "${data.template_file.vars.rendered}" > "${path.module}/tmp/vars.ini" EOF } }