In my last post, I showed a sample with OAuth. It works well for application on others’ behalves. For the hello world program, it’s better to run without any user’s manual interaction. Google has provided “Service Account Key” for that purpose.
When you create a new credential, the console asks the type of key. You can select the service account key, and then select the “Compute engine default service account” with P12 as the key type. The generated key will be downloaded automatically. Save it safely and it cannot download again. You can then copy the key to the project home with a name as key.p12. Read more...
Google Cloud is the 3rd public cloud I tried after Amazon AWS and Microsoft Azure. I used its AppEngine before and it worked pretty well. Google started very early in the cloud game but it lost the opportunity to Amazon because it over-estimated the attractiveness of its own infrastructure that runs Google search. Read more...
After the initial bad experience with the new Azure Resource Management APIs, I took a different approach – try the old Service Management APIs. While transitioning from old system to new system, the old one may still be the best for an unexpected long period of time. Like VMware vSphere Client, VMware has declared end of life many times, but it’s still the favorite for most customers, while the future Web Client remains “future” since 2011. Read more...
The recent release of DoubleCloud vSearch represents a paradigm shift in how we manage data center in the future. Before agreeing with me on that, let’s take a quick look at the history.
Yahoo vs. Google
When the Web first came out in the early 90s, there weren’t many Web sites and pages out there. To help us find pages of interest, a typical directory approach was used. That created the initial success for Yahoo in the first place. Read more...
It was my plan to go over the popular cloud services on their management APIs. After familiarizing myself with Amazon AWS Java SDK with a few samples, I started with Azure and it turned out to a painful process.
In the following I will walk you through what I had experienced, and what works and not. Hope my experience will help you save some time with Azure. Read more...
In my previous posts, I showed samples on virtual machine creation, virtual machine instances listing, storage volume listing. This sample shows how to list all the networks that you have.
With the information about your networks, you can get all the private and public IP addresses.
To run the following sample, you can check out the previous post for the pom.xml file and how to get AWS credentials from AWS console.
8bdaff85acef8704b9adc5026e221e0e018 Read more...
In my previous posts, I showed samples on how to create a new virtual machine instance, and how to list all the virtual machine instances you own. This sample shows how to list all the disk volumes that you have.
To run the following sample, you can check out the previous posts for the pom.xml file and how to get AWS credentials from AWS console.
public class AwsEc2ListVolumes
public static void main(String args) throws Exception
AWSCredentials credentials = new PropertiesCredentials(AwsEc2ListVolumes.class.getResourceAsStream("/AwsCredentials.properties"));
AmazonEC2 ec2 = new AmazonEC2Client(credentials);
DescribeVolumesResult volReq = ec2.describeVolumes();
int count = 1;
for (Volume vol : volReq.getVolumes())
System.out.println("Volume " + count + "\n Details: " + vol);
The output will be something as follows: Read more...
In my previous post, I showed a sample on how to list virtual machine instances. While that is helpful, maybe even more so is to create a new virtual machine. Here comes another sample that creates new virtual machine instance using the Amazon Java SDK. Read more...