In this exercise we will be provisioning an EC2 instance by hand to build some familiarity with the web console, and to develop an appreciation for the level of effort involved to launch and configure an instance by hand.
- Build familiarity with the AWS Web console
- Develop a healthy appreciation for manual provisioning effort
- Provision a functional web-server by hand, and deploy to it with Octopus
- Open the EC2 console within the AWS web console
- Launch a "Microsoft Windows Server 2016 Base" image-based EC2 instance
- Make it a t2.medium
- Ensure it is on the CloudFormawesome VPC, in the DMZ B subnet
- Ensure it is assigned a public IP address
- Provision a 50 gigabyte General Purpose SSD to be used
- Tag the instance with a key of "Name", and value of "{yourinitials}-WebServer-Manual"
- Create a new security group named {yourinitials}-WebServer-Manual-SecurityGroup
- Given we are going to be using the instance to host a web site, need to remote to it to configure a tentacle, and Octopus needs to talk to it, assign inbound access rules for all IP addresses to ports 80 and 3389, and for the VPC IP range to 10933
- GO GO GO! (Review, then click Launch)
- You will be prompted for a key pair that will be used to generate the instance's administrator password. Select the AwsDayKeyPair
- Once launched, remote onto your instance via it's public IP address - to retrieve the password for your instance, select it in the console and click 'Connect', locate the .pem file for the AwsDayKeyPair and click 'Decrypt Password'
- Give that this is a base windows image, we will need to add the Web Server (IIS) role to it in Server Management, and ensure under that that we have selected Application Development > ASP.NET 4.6
- Finally, connect to Octopus (address and credentials are be provided), install a tentacle onto your machine, add your machine to the Production environment and trigger a deployment. Use the manual tentacle registration if discovery fails in Octopus.
- On your webserver hit http://localhost - great success!