From d3bec7f63a25df3efa8be8e7c2eac999ae5ea937 Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 1 Aug 2022 13:03:21 -0400 Subject: [PATCH] fix --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 9521fa6..688a7c2 100644 --- a/main.tf +++ b/main.tf @@ -187,7 +187,7 @@ resource "aws_iam_user_policy" "user_policy" { resource "local_sensitive_file" "user_create_profile" { filename = format("%v/access_keys/%v/create-profile.%v.sh", path.root, aws_iam_user.user.name) file_permission = "0755" - content = templatefile("${path.root}/templates/create-profile.sh.tpl", { + content = templatefile("${path.module}/templates/create-profile.sh.tpl", { username = aws_iam_user.user.name source_profile = var.profile source_region = local.region