Skip to content

Commit a71f6ae

Browse files
committed
Make path to build spec relative to cwd
1 parent 7b9857d commit a71f6ae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "aws_codebuild_project" "codebuild_project" {
3939
type = "GITHUB"
4040
location = var.git_repo
4141
git_clone_depth = var.git_clone_depth
42-
buildspec = templatefile("${path.module}/${var.build_spec_file}", {})
42+
buildspec = templatefile("${path.cwd}/${var.build_spec_file}", {})
4343
git_submodules_config {
4444
fetch_submodules = true
4545
}

variable.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variable "project_name" {
1414
}
1515

1616
variable "git_repo" {
17-
description = "Github repo "
17+
description = "Github repo (FullPath for to pull via git clone) "
1818
default = "https://github.com/aws-ia/terraform-modules-examples"
1919
}
2020

0 commit comments

Comments
 (0)