We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6045ec7 commit 120db27Copy full SHA for 120db27
main.tf
@@ -268,9 +268,7 @@ resource "aws_instance" "web-windows" {
268
user_data = <<-EOF
269
<powershell>
270
Install-WindowsFeature -name Web-Server -IncludeManagementTools
271
-$os = systeminfo | findstr /B /C:"OS Name“
272
-$ipAddress = Resolve-DnsName $env:COMPUTERNAME -Type A | Select -Property IPAddress
273
-New-Item -Path C:\inetpub\wwwroot\index.html -ItemType File -Value "Hello World from $ipAddress running on $os" -Force
+New-Item -Path C:\inetpub\wwwroot\index.html -ItemType File -Value "Hello World Page running on Windows Server" -Force
274
</powershell>
275
EOF
276
0 commit comments