FG
☁️ Cloud & DevOps

File provisioning hangs with Terraform 12.* terraforming a Windows server with Powershell 5 installed

Freshalmost 5 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

Terraform Version [code block] Terraform Configuration Files [code block] Debug Output [code block] The interrupt received was me cancelling the cmd line process. Crash Output N/A Expected Behavior On a Windows Server with Powershell 5 installed, be able to use Terraform 12. to complete file provisioning of TestFolder1, copying all content and subfolder content, and continue to the next file provisioning step. This works in Terrafform 11. I am using terraform v0.11.8 successfully with provider.aws v1.35.0 Actual Behavior Since upgrading to Terraform 12., the file provisioning of TestFolder1 copies a couple of the 1 KB files over, seems to copy over what can be done in 1 minute, and then stops copying over content. The Terraform console logging continues to report "Still creating..." without end and doesn't obey the timeout. The Terraform process never completes. Steps to Reproduce Setup Windows Server 2012 to have Powershell 5 1. Create a Window Server 2012 R2 64 bit instance and manually or via cli For AWS, I am using the source AMI filter [code block] 2. Install Powershell 5 directly via the MSU or through Chocolatey, both have the same effect. 2.1 Chocolatey via, "choco install powershell" 2.2 Manually by downloading Win8.1AndW2K12R2-KB3191564-x64.msu from https://www.microsoft.com/en-us/download/details.aspx?id=54616, Windows Management Framework 5.1 (KB3191564). 2.2.1 Install via the GUI manually or run "Win8.1AndW2K12R2-KB3191564-x64.msu /quiet" in a cmd line

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
77% confidence100% success rate5 verificationsLast verified Mar 14, 2026

Solution: File provisioning hangs with Terraform 12.* terraforming a Windows server with Powershell 5 installed

Low Risk

I have the exact same issue. I switched to 11.14 and now file provisioner step completes no problem.

77

Trust Score

5 verifications

100% success
  1. 1

    I have the exact same issue. I switched to 11.14 and now file provisioner step c

    I have the exact same issue. I switched to 11.14 and now file provisioner step completes no problem.

Validation

Resolved in hashicorp/terraform GitHub issue #22006. Community reactions: 8 upvotes.

Verification Summary

Worked: 5
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

terraformiacawsbugprovisioner/fileprovisioner/winrmwaiting-for-reproduction