chore(e2e): Allow worker task on windows instances to run indefinitely (#6043)

* chore(e2e): Allow worker to run indefinitely

* chore(e2e): Add time sync to ensure windows instances are in sync

* CR: Remove semicolons
This commit is contained in:
Michael Li authored and GitHub committed 2025-09-12 14:02:12 -04:00
1 parent 31ec8a8297
commit c2585d8fb8
4 files changed
+38 -3

No files matched your search

@@ -271,6 +271,15 @@ resource "aws_instance" "domain_controller" {
user_data = <<EOF
<powershell>
# Configure the server to use reliable external NTP sources and mark itself as reliable
# We use pool.ntp.org, a public cluster of time servers. 0x9 flag means Client + SpecialInterval.
w32tm /config /manualpeerlist:"pool.ntp.org,0x9" /syncfromflags:manual /reliable:yes /update
# Restart the Windows Time service to apply the new configuration
Stop-Service w32time
Start-Service w32time
# Force an immediate time synchronization
w32tm /resync /force
$password = ConvertTo-SecureString ${random_string.DSRMPassword.result} -AsPlainText -Force
Add-WindowsFeature -name ad-domain-services -IncludeManagementTools