Release: AWS SDK for .NET 1.2.2

Release Notes>.NET>Release: AWS SDK for .NET 1.2.2
This release adds support for AWS Elastic Beanstalk.

Details

Submitted By: Norm@AWS
Release Date: January 18, 2011 7:55 AM GMT
Created On: January 18, 2011 7:55 AM GMT
Last Updated: January 18, 2011 7:55 AM GMT

Download

Download the AWS SDK for .NET 1.2.2

New Features

Change Description
AWS Elastic Beanstalk API Support

AWS Elastic Beanstalk enables developers to quickly deploy and manage applications in the AWS cloud without having to worry about the physical infrastructure or the resource configuration that accompanies setting up that infrastructure.   You simply upload your application to AWS Elastic Beanstalk, and AWS Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.   AWS Elastic Beanstalk leverages AWS services such as Amazon EC2, Amazon S3, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to deliver the same highly reliable, scalable, and cost-effective infrastructure that thousands of businesses depend on today.  Once your application is deployed, AWS Elastic Beanstalk can be used to monitor, change configuration settings, and deploy new versions. For more information on AWS Elastic Beanstalk, see http://aws.amazon.com/elasticbeanstalk.

The following sample demonstrates how to deploy an application:

string awsAccessKey = "INSERT ACCESS KEY";
string awsSecretAccessKey = "INSERT SECRET KEY";

string warDeploymentBucket = "amazing-app-deployment-bucket";
string warFileLocation = @"c:\deployment\Amazing.war";
string applicationName = "My Amazing Web Application";
string envName = "Staging Environment";

// List of available stack solutions can be found using 
// AmazonElasticBeanstalk.ListAvailableSolutionStacks()
string stackSolution = "64bit Amazon Linux running Tomcat 6";

AmazonElasticBeanstalk beanstalkClient = AWSClientFactory.CreateAmazonElasticBeanstalkClient(awsAccessKey, awsSecretAccessKey);
TransferUtility transfer = new TransferUtility(awsAccessKey, awsSecretAccessKey);

transfer.Upload(warFileLocation, warDeploymentBucket, "Amazing.war");

// Where the WAR file is currently located at.
S3Location s3FileLocation = new S3Location()
            .WithS3Bucket(warDeploymentBucket)
            .WithS3Key("Amazing.war");

CreateApplicationVersionRequest createVersionRequest = new CreateApplicationVersionRequest()
    .WithApplicationName(applicationName)
    .WithVersionLabel("0.1")
    .WithAutoCreateApplication(true)
    .WithSourceBundle(s3FileLocation);

beanstalkClient.CreateApplicationVersion(createVersionRequest);

CreateEnvironmentRequest createEnvRequest = new CreateEnvironmentRequest()
    .WithApplicationName(applicationName)
    .WithSolutionStackName(stackSolution)
    .WithVersionLabel("0.1")
    .WithEnvironmentName(envName);

beanstalkClient.CreateEnvironment(createEnvRequest);    
          

Known Issues

Issue Description
Installation Requires Administrator Privileges The default install location is %PROGRAMFILES%, which on most computers is "c:\program files". In order to install files to the default location, the MSI must be run by an Administrator. If you don't have Administrator privileges on the machine, please change the install location to something like "c:\Documents and Settings\<you>\AWS SDK for .NET", and the install will complete successfully. If you are running on Vista, your personal folder is similar to "c:\users\<you>\".
Uninstalling the SDK Produces "Unknown Publisher" Message On Windows Vista, uninstalling the MSI results in an "Unknown Publisher" dialog even though the installer is signed by Amazon Web Services. This is a known Windows Installer bug on Windows Vista, and is documented here: http://support.microsoft.com/kb/929467/en-us

Migrating to the AWS SDK for .NET 1.2.2

There were a number of changes made in previous releases that may impact applications using Amazon CloudWatch, Auto Scaling, Amazon RDS, Elastic Load Balancing, or Amazon Elastic MapReduce:

The 1.2.0 release contained the following changes to Amazon CloudWatch and Amazon Auto Scaling:

Title Description
ResponseMeta The classes Amazon.CloudWatch.Model.ResponseMeta and Amazon.AutoScaling.Model.ResponseMeta were moved to the common location Amazon.Runtime.ResponseMeta.
Removed ToXML methods The ToXML methods were removed so the responses can be streamed from the services for improved performance.
Amazon CloudWatch Data Type Changes
  • The type of the Timestamp property has been changed from string to DateTime in the following classes: Datapoint.
  • The type of the StartTime property has been changed from string to DateTime in the following classes: GetMetricStatisticsRequest.
  • The type of the EndTime property has been changed from string to DateTime in the following classes: GetMetricStatisticsRequest.
Auto Scaling Data Type Changes
  • The type of the MaxRecords property has been changed from decimal to int in the following classes: DescribeLaunchConfigurationsRequest and DescribeScalingActivitiesRequest.
  • The type of the MinSize property has been changed from decimal to int in the following classes: CreateAutoScalingGroupRequest and UpdateAutoScalingGroupRequest.
  • The type of the MaxSize property has been changed from decimal to int in the following classes: CreateAutoScalingGroupRequest and UpdateAutoScalingGroupRequest.
  • The type of the Progress property has been changed from decimal to int in the following classes: TerminateInstanceInAutoScalingGroupRequest.
  • The type of the DesiredCapacity property has been changed from decimal to int in the following classes: SetDesiredCapacityRequest.

The 1.1.0 release contained the following changes to Amazon RDS, Elastic Load Balancing and Amazon Elastic MapReduce

Title Description
ResponseMeta The classes Amazon.ElasticLoadBalancing.Model.ResponseMeta, Amazon.ElasticMapReduce.Model.ResponseMeta and Amazon.RDS.Model.ResponseMeta were moved to the common location Amazon.Runtime.ResponseMeta.
Removed ToXML methods The ToXML methods were removed so the responses can be streamed from the services for improved performance.
Amazon RDS Data Type Changes
  • The type of the MaxRecords property has been changed from decimal to int in the following classes: DescribeDBEngineVersionsRequest, DescribeDBInstancesRequest, DescribeDBParameterGroupsRequest, DescribeDBParametersRequest, DescribeDBSecurityGroupsRequest, DescribeDBSnapshotsRequest, DescribeEngineDefaultParametersRequest, DescribeEventsRequest, DescribeReservedDBInstancesOfferingsRequest and DescribeReservedDBInstancesRequest.
  • The type of the Port property has been changed from decimal to int in the following classes: CreateDBInstanceReadReplicaRequest, CreateDBInstanceRequest, DBSnapshot, DescribeDBInstancesRequest, Endpoint, PendingModifiedValues, RestoreDBInstanceFromDBSnapshotRequest and RestoreDBInstanceToPointInTimeRequest.
  • The type of the AllocatedStorage property has been changed from decimal to int in the following classes: CreateDBInstanceRequest, DBInstance, DBSnapshot, ModifyDBInstanceRequest and PendingModifiedValues.
  • The type of the BackupRetentionPeriod property has been changed from decimal to int in the following classes: CreateDBInstanceRequest, DBInstance, ModifyDBInstanceRequest and PendingModifiedValues.
Amazon RDS Property Name Changes The following property names were pluralized.
  • DescribeDBSecurityGroupsResponse.DBSecurityGroups
  • DBSecurityGroup.EC2SecurityGroups
  • DBSecurityGroup.IPRanges
  • DBInstance.DBSecurityGroups
  • DBInstance.DBParameterGroups
  • DescribeEventsResponse.Events
  • DescribeDBInstances.DBInstances
  • DescribeDBParameterGroupsResponse.DBParameterGroups
  • EngineDefaults.Parameters
  • DescribeDBSnapshots.DBSnapshots
Elastic Load Balancing Data Type Changes
  • The type of the CookieExpirationPeriod property has been changed from decimal to int in the following class: CreateLBCookieStickinessPolicyRequest
  • The type of the Interval property has been changed from decimal to int in the following class: HealthCheck
  • The type of the Timeout property has been changed from decimal to int in the following class: HealthCheck
  • The type of the UnhealthyThreshold property has been changed from decimal to int in the following class: HealthCheck
  • The type of the HealthyThreshold property has been changed from decimal to int in the following class: HealthCheck
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: Listener
  • The type of the InstancePort property has been changed from decimal to int in the following class: Listener
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: Listener
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: SetLoadBalancerPoliciesOfListenerRequest
Amazon Elastic MapReduce Data Type Changes
  • The type of the CreatedAfter property has been changed from decimal to int in the following class: DescribeJobFlowsRequest
  • The type of the CreatedBefore property has been changed from decimal to int in the following class: DescribeJobFlowsRequest
  • The type of the InstanceCount property has been changed from decimal to int in the following class: JobFlowInstancesConfig

Supported API Versions

This release of the SDK supports the following API versions:

Service API Version
Amazon CloudFront 2010-08-01
Amazon CloudWatch 2010-08-01
Amazon Elastic Compute Cloud (EC2) 2010-08-31
Amazon Elastic MapReduce 2009-03-31
Amazon Relational Database Service (RDS) 2010-07-28
Amazon Simple Notification Service (SNS) 2010-03-31
Amazon Simple Queue Service (SQS) 2009-02-01
Amazon Simple Storage Service (S3) 2006-03-01
Amazon SimpleDB 2009-04-15
Auto Scaling 2009-05-15
AWS Elastic Beanstalk 2010-12-01
AWS Identity and Access Management 2010-05-08
AWS Import/Export 2010-06-01
Elastic Load Balancing 2010-07-01
©2013, Amazon Web Services, Inc. or its affiliates. All rights reserved.