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 2012 R2 Base" image-based EC2 instance
- Make it a t2.small
- Ensure it is on the Sandbox VPC, in the Public A subnet
- Ensure it is assigned a public IP address
- Provision a 50 gigabyte General Purpose SSD to be used
- Tag the instance with {yourinitials}-WebServer
- Create a new security group named {yourinitials}-WebServer-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 ports 80, 3389 and 10933
- GO GO GO! (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 role to it in Server Management, and ensure under that that we have selected Application Development > ASP.NET 4.5
- Finally, connect to Octopus (address and credentials are be provided), install a tentacle onto your machine, add your machine to the CI environment and trigger a deployment
- Hit http://localhost - great success!