Skip to content

Instantly share code, notes, and snippets.

@kudosqujo
Last active November 22, 2020 23:39
Show Gist options
  • Select an option

  • Save kudosqujo/aeb73fb1e85aa99ddaf4a21fa97fbb29 to your computer and use it in GitHub Desktop.

Select an option

Save kudosqujo/aeb73fb1e85aa99ddaf4a21fa97fbb29 to your computer and use it in GitHub Desktop.
[AWS User Data] #aws #linux #windows
#!/bin/sh
# ^ User data shell scripts must start with the #! characters and the path to the interpreter you want to read the script
yum -y install httpd # Install Apache web server
chkconfig httpd on # Enable the web server
/etc/init.d/httpd start # Start the web server
# see AWS Technical Essentials Student Guide v4.7.9 - page 51
# see AWS Technical Essentials Student Guide v4.7.9 - page 52
<powershell>
# Import the Server Manager module for Windows PowerShell
Import-Module ServerManager
# Install IIS and Install Web Management Tools
Install-WindowsFeature web-server, web-webserver
Install-WindowsFeature web-mgmt-tools
</powershell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment