Wednesday, December 02, 2009

Describing EC2 instances using the AWS SDK for .NET

:Link to Article:
Here is some sample code that shows you how to enumerate the EC2 instances currently associated with your AWS account.

DescribeInstancesResponse resp = ec2.DescribeInstances(new DescribeInstancesRequest());
if (resp.IsSetDescribeInstancesResult())
DescribeInstancesResult result = resp.DescribeInstancesResult;
foreach (RunningInstance inst in result.RunningInstance)

Watch this space for more snippets of code that will help you manage your AWS resources using the SDK for .NET.


Post a Comment

Links to this post:

Create a Link

<< Home