User guide

Table Of Contents
AWS SDK for .NET Tutorials and
Examples
The following tutorials and examples demonstrate how to use the AWS SDK for .NET to access Amazon
Web Services.
Before you begin, be sure that you have set up the AWS SDK for .NET (p. 3) and that you have reviewed
the material in the Programming with the AWS SDK for .NET (p. 8).
Contents
Managing ASP.NET Session State with Amazon DynamoDB (p. 32)
Tutorial: Creating Amazon EC2 Instances with the AWS SDK for .NET (p. 36)
Tutorial: Grant Access Using an IAM Role and the AWS SDK for .NET (p. 47)
Tutorial: Amazon EC2 Spot Instances (p. 51)
Creating and Using an Amazon SQS Queue with the AWS SDK for .NET (p. 58)
Creating an Amazon Route 53 Hosted Zone and Adding Resource Record Sets (p. 63)
Managing ASP.NET Session State with Amazon
DynamoDB
ASP.NET applications often store session-state data in memory. However, this approach doesn't scale
well. Once the application grows beyond a single web server, the session state must be shared between
servers. A common solution is to set up a dedicated session-state server with Microsoft SQL Server. But
this approach also has drawbacks: you must administer another machine, the session-state server is a
single point of failure, and the session-state server itself can become a performance bottleneck.
Amazon DynamoDB, a NoSQL database store from Amazon Web Services (AWS), provides an effective
solution for sharing session-state across web servers without incurring any of these drawbacks.
Note
Regardless of the solution you choose, be aware that Amazon DynamoDB enforces an item
size limit of 64 KB. None of the records that you store in DynamoDB can exceed this limit.
Version v2.0.0
32
AWS SDK for .NET Developer Guide
Managing ASP.NET Session State with Amazon Dy-
namoDB