C. Launching instances of Amazon Machine Images (AMIs) preloaded with DB2
Follow these steps to launch instances of AMIs preloaded with DB2.
- Go to the DB2 Express-C Development AMI web page.
- Click Register with Amazon and start using the development AMI for IBM DB2 Express C 9.7 32-bit, as shown in Figure 18.
Figure 18. Registering for AMIs
- Click Purchase.
- Review the pricing details and click Place your order.
- Write down the activation key. You can generate a new activation key any time by visiting http://www.amazon.com/dp-activate.
- Optionally check your email to receive your confirmation message.
- Go back to the AWS Management Console (aws.amazon.com/console), and make sure you are in the EC2 dashboard, as shown in Figure 19.
Figure 19. EC2 dashboard
- Click Launch instance.
- Click the Community AMIs tab. The window that shows Community AMIs appears, as shown in Figure 20.
Figure 20. Launch instance wizard
- Narrow your search criteria by entering db2 or express-c into the filtering text field.
- Click Select on the latest 32-bit DB2 Express-C image, for example ami-e826b89eb, as shown in Figure 21.
Figure 21. Selecting DB2 Express-C image
- Enter the number of instances as 1, and select the Instance Type as Small.
- Accept other defaults for Instance details, including for Advanced Options, as shown in Figure 22, and click Continue.
Figure 22. Completing Request Instance wizard
- Select Create a new Key Pair and enter a name for it, for example demokey.
- Click Create & Download your Key Pair, as shown in Figure 23.
Figure 23. Creating the key pair
- Select Save to disk, and save the demokey.pem file into the $HOME/.ec2 folder.
- Click Continue.
- Hold down the Ctrl key to select both the db2 security groups and the default security groups, as shown in Figure 24.
- Click Continue.
Figure 24. Choosing security groups
- Review your selections, as shown in Figure 25, and click Launch.
Figure 25. Review selections
- Click Close when the message box appears that
Your instances are launching.
Your instance should now be starting up!