User data to install IIS in Amazon Web Services (AWS) instance

by Marc Cortada 27/11/2015

This script installs IIS in an AWS EC2 Windows Server instance. When the server is up and running an IIS is available to publish content.

Just add the following lines into the text box located at the section "Advanced Details > user data" when you are configuring a new EC2 instance.

Set-ExecutionPolicy Unrestricted -Force
New-Item -ItemType directory -Path 'C:\temp'

# Install IIS and Web Management Tools.
Import-Module ServerManager
install-windowsfeature web-server, web-webserver -IncludeAllSubFeature
install-windowsfeature web-mgmt-tools


Categorías: Amazon Web Services (AWS) | ASP.NET | AWS User Data | IIS

Entradas por mes