This blog will take you through setting up a Sitecore website under Amazon’s Web Service (AWS). Note that this will be a basic single Sitecore site. In further posts, I will talk about setting up separate instances of CM, CD(s), and database.
Set up EC2 instance
Amazon offers Elastic Compute Cloud (EC2) which is a web service that provides resizable compute capacity in the cloud (resizable virtual servers). We will use one of these instances to hold our Sitecore solution.
To set up a virtual server to run Windows Server 2008 with SQL Server Express and IIS, launch the Instance creation wizard:
- Go to the AWS Management Console
- Click Amazon EC2
- Select the region you would like your instance to be created in
- Click Launch Instance
- Select the Classic Wizard and click next
[caption id="attachment_115" align="alignnone" width="623" caption="EC2 Wizard Step 1"]
You will now see something like the image above. Here you can select a machine image to make an instance of. Scroll down and find Microsoft Windows Server 2008 R2 with SQL Server Express and IIS
and click Select.
[caption id="attachment_116" align="alignnone" width="623" caption="EC2 Wizard Step 2"]
After selecting an image, you can specify the number of instances and the instance type to create. You can also select regular or spot instances. Spot instances allow customers to bid on unused EC2 capacity. If your website can be flexible on when it runs, you can save money by selecting a spot instance. We will select 1 regular micro instance.
[caption id="attachment_117" align="alignnone" width="624" caption="EC2 Wizard Step 3"]
On the next page, you can select the kernel or RAM disk to use. You can also select if you would like monitoring. We’ll leave all the defaults and click continue
[caption id="attachment_118" align="alignnone" width="623" caption="EC2 Wizard Step 4"]
Here you can tag your instance to help identify it. Give it a name like "MySitecoreSite."
[caption id="attachment_119" align="alignnone" width="623" caption="EC2 Wizard Step 5"]
Create and download your Key Pair. This is use to connect to the instance - we will need this later.
[caption id="attachment_120" align="alignnone" width="623" caption="EC2 Wizard Step 6"]
Here we can set security groups which will determine what ports will be open for your instance. You can change this later.
to review your options and then click Launch
when you are done. It will take a few minutes to launch your instance.
Access your EC2 Instance
To access your EC2 Instance via Remote Desktop, we will need two things: the public hostname of the server and login credentials.
To get login credentials:
- Select your instance
- Click on Instance Actions dropdown
- Click Get Windows Admin Password
- Click Browse… and select your pair key file (.pem) you have downloaded from earlier
- Click Decrypt Password
- The server name, account, and decrypted password are now displayed.
You can now Remote Desktop onto your server and set up your site.
Setup the Sitecore site
Once you have Remote Desktop onto your server, installing Sitecore on AWS is no different from installing on a traditional server. A guide on how to set up Sitecore can be found on Sitecore's sdn: http://sdn.sitecore.net/upload/sitecore6/65/installation_guide_sc65-a4.pdf#page=11
Also, please check out the security hardening guide: http://sdn.sitecore.net/upload/sitecore6/62/sitecore_security_hardening_guide-usletter.pdf
One last thing – we need to assign a static IP for our server.
We need to assign a static IP for your instance as it gets assign a new Public DNS every time you restart the instance.
Amazon offers Elastic IPs
which has a static public IP you can register with your domain provider.
To assign an Elastic IP for our instance:
- Go to the AWS Management Console > Amazon EC2 > Elastic IPs
- Click Allocate New Address
- Select EC2 and click Yes, Allocate
- Once an Elastic IP has been allocated, click Associate Address and associate the IP with your instance.
[caption id="attachment_114" align="alignnone" width="624" caption="EC2 Elastic Load Balancer"]
You can now register that IP with your domain provider.
[caption id="attachment_150" align="alignnone" width="563" caption="Sitecore Site"]
Opening your site up in a browser, you will see the default Sitecore page.