diff --git a/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 b/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 index 8d5fd1b..6ef5c9e 100644 --- a/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 +++ b/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 @@ -23,6 +23,9 @@ function Invoke-Terraform { [switch] $silent ) + # Resolve to absolute path for `terraform -chdir` switch + $moduleFolderPath = (Resolve-Path $moduleFolderPath).Path + if ($PSCmdlet.ShouldProcess("Apply Terraform", "modify")) { # Check and Set Subscription ID $removeSubscriptionId = $false