This simple windows project has 5 tasks. 1… to create a windows server instance on AWS platform, 2… set up IIS and publish a website, 3… add and extend storage, 4… add and remove networks, and 5… upsize and downsize cpu resources.
Publishing a website on IIS and manaaging user resources
Publish a website
I spun a Microsoft Windows Sever 2016 Base, 1 Core CPU and 1GB RAM. An initial storage of 30GB applied to the volume.
I set up a Security Group to allow ports 3389 and 80 for two purposes; to log into the back end from local host to AWS instance and for web access in the front end.
Connected to the instance via RDP, default user name is Administrator and decrypted the keypair generated earlier to obtain password.
Microsoft Windows Server 2016 installed.
Used Service Manager to configure the Server.
default published page
Accessed the default published page from the Public IP address. (Do note that the IPs will differ in the screen shots as a static IP has not been assigned and will change when the instance stops and starts.) The next stage is to publish my own site.
I download a website template and copied all the file contents and pasted into C:\interpub\wwwroot folder. Edited the html in the index file to add my name. And there we have a published site.
A problem arises where a developer complains he is running out of disk space. The local C drive only contains 29.9GB of storage.
I went into Volume settings and modified size from 30GB to 40GB
Now we have 40GB storage
In order for the modification to populate in the on the server, you must first go into Disk Management, locate the unallocated additional 10GB and add it by extended volume.
Now the developer complains again and say ‘why did you add the storage in the same drive where the operating system is running. I don’t want that, I require a separate space’. No problem!
We shall give him a Z drive. Create a new volume which matches the same availability zone as the primary volume and attach to it. Now we have two volumes. One at 40GB and one at 10GB.
New Z Drive
This partition is reflected. There is now a C drive and a Z drive.
1 Network card
The application developer has another request. He wants an additional Network Card for active passive traffic to be sent on the instance, so we need to oblige that.
Here we can see there is only 1 Network Card.
2 network cards
I created a Network Interface Card with the same security group and availability zone as the primary. Attached to the instance. Ipconfig in the cmd to see it reflected.
2 private ip addresses
The private IPs 172.31.20.86 and 172.31.22.173 should match both on the command line terminal and AWS console.