How to Create an IIS Web Server on a Windows EC2 Instance Using a Bootstrap Script

Launch instance

image.png

Give server name windows-webserver

image.png

Select windows server 2022

image.png

Instance type and key

image.png

Network settings

image.png

image.png

Configure storage

image.png

User data Install-WindowsFeature -name Web-Server -IncludeManagementTools New-Item -Path C:\inetpub\wwwroot\index.html -ItemType File -Value "KTExperts is a knowledge Sharing Platform" -Force

image.png

Launch instance

image.png

Copy the public IP address

image.png

View the page

image.png