Skip to main content

If you don't have an IBM ID and password, register here.

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. This profile includes the first name, last name, and display name you identified when you registered with developerWorks. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

Deploy your database applications and projects on the cloud

Using IBM DB2 data server and Amazon Elastic Compute Cloud (EC2)

Rav Ahuja (rsahuja@ca.ibm.com), Senior Product Manager, IBM
Rav Ahuja is a Senior Product Manager for Data Management at IBM and is based in the Toronto Lab. He has been working with DB2 since version 1, and he has held various roles in DB2 development, technical support, marketing, and product management. In addition to product strategy and evangelism, Rav spends his time helping customers and business partners around the globe benefit from DB2 solutions using emerging technologies and cloud computing. He is a frequent presenter at events in many countries, and he has written numerous papers, articles and books related to DB2. In his spare time, Rav helps maintain ChannelDB2.com, a social network that aggregates DB2 related videos, blogs, podcasts, and so on. Rav holds a Computer Engineering degree from McGill University and an MBA from University of Western Ontario.
Bradley Steinfeld (bsteinfe@ca.ibm.com), Software Developer, IBM
Bradley Steinfeld is a software developer and an open-source-software evangelist based out of the IBM Toronto Lab. He is one of the first IBMers to work with DB2 on the cloud, and he has become an expert on various cloud technologies (Amazon EC2, CloudBurst, Eucalyptus, and so on). He has a Bachelor of Mathematics from the University of Waterloo.

Summary:  Cloud computing is an increasingly popular paradigm that can significantly accelerate development and prototyping cycles. In this tutorial you will learn how you can easily deploy your database applications and projects on the cloud in just minutes using IBM® DB2® data server and Amazon Elastic Compute Cloud (EC2). No prior cloud computing or DB2 experience is necessary.

Date:  28 Jan 2010
Level:  Intermediate PDF:  A4 and Letter (2313 KB | 39 pages)Get Adobe® Reader®

Comments:  

B. Securing your Amazon Elastic Compute Cloud (EC2) environment

Follow these steps to secure your cloud environment.

  1. Click Create a New X.509 Certificate, as shown in Figure 8.

Figure 9. Create an X.509 certificate
X.509 certificate
  1. Click Download private key file.
  2. Click Download X.509 certificate.
  3. Click Save to disk, and specify a location such as $HOME/.ec2 in which to save these .pem files.
  4. Click OK, and click Close. The window showing successful X509 certificate creation appears, as shown in Figure 10.

Figure 10. X509 certificate created
Shows successful creation of X509 certificate
  1. Verify that the .pem files are saved to the $HOME/.ec2 directory by opening a terminal by clicking Gnome Terminal Command Line Terminal and entering ls $HOME/.ec2/. If two .pem files are displayed, proceed to Configuring the firewall.
  2. If you saved the files to a different location, open a terminal and move the .pem files to ls $HOME/.ec2/. For example, if you saved the files on the desktop, enter the following command in the terminal window: mv $HOME/Desktop/*.pem $HOME/.ec2/

Configuring the firewall

  1. Launch the Amazon Web Services Management Console.
  2. Select EC2, and click Sign in to the AWS Console, as shown in Figure 11.

Figure 11. Signing into the console
Shows signing into the console
  1. Open the Amazon Management Console Web page, and select Security Groups, as shown in Figure 12.

Figure 12. Networking and security options
Shows selecting security groups
  1. Click Create Security Group.
  2. Enter db2 as the name of the security group, and provide a description, as shown in Figure 13.

Figure 13. Creating the security group
Shows fields where you specify security group
  1. Click Create.
  2. Select db2 security group, as shown in Figure 14.

Figure 14. Selecting the security group
Shows fields where you select security group
  1. Open TCP port 50000,50001 (DB2) by filling in the values, as shown in Figure 15, and clicking Save.

Figure 15. Opening the TCP port
Shows fields where you specify ports
  1. Repeat Step 8 to open ports 60000-60003 (DB2 FCM), as shown in Figure 16.

Figure 16. Opening additional TCP port
Shows fields where you specify ports
  1. Repeat Step 8 to add port 22 for SSH and to add port 80 for HTTP, as shown in Figure 17.

Figure 17. Adding more ports
Shows adding ports on Security Groups screen

3 of 12 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management,
ArticleID=465178
TutorialTitle=Deploy your database applications and projects on the cloud
publish-date=01282010
author1-email=rsahuja@ca.ibm.com
author1-email-cc=
author2-email=bsteinfe@ca.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).