Last active
November 22, 2020 23:39
-
-
Save kudosqujo/aeb73fb1e85aa99ddaf4a21fa97fbb29 to your computer and use it in GitHub Desktop.
[AWS User Data] #aws #linux #windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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