

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Scenarios for Amazon EC2 using AWS SDKs
<a name="ec2_code_examples_scenarios"></a>

The following code examples show you how to implement common scenarios in Amazon EC2 with AWS SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions within Amazon EC2 or combined with other AWS services. Each scenario includes a link to the complete source code, where you can find instructions on how to set up and run the code. 

Scenarios target an intermediate level of experience to help you understand service actions in context.

**Topics**
+ [Build and manage a resilient service](ec2_example_cross_ResilientService_section.md)
+ [Configure container service connectivity](ec2_example_ecs_ServiceConnect_085_section.md)
+ [Create a basic virtual private network](ec2_example_vpc_GettingStartedCLI_section.md)
+ [Create a container task for the serverless launch type](ec2_example_ecs_GettingStarted_086_section.md)
+ [Creating a container service for virtual machine instances](ec2_example_ecs_GettingStarted_018_section.md)
+ [Creating a relational database instance](ec2_example_rds_GettingStarted_036_section.md)
+ [Creating and managing a service networking mesh](ec2_example_vpc_lattice_GettingStarted_055_section.md)
+ [Creating and managing block storage volumes](ec2_example_ec2_GettingStarted_020_section.md)
+ [Get started with dedicated network connections](ec2_example_directconnect_GettingStarted_051_section.md)
+ [Get started with software marketplace purchasing](ec2_example_ec2_GettingStarted_030_section.md)
+ [Getting started with big data processing clusters](ec2_example_emr_GettingStarted_037_section.md)
+ [Getting started with document databases](ec2_example_docdb_GettingStarted_025_section.md)
+ [Getting started with graph databases](ec2_example_ec2_GettingStarted_064_section.md)
+ [Getting started with in-memory caching](ec2_example_ec2_GettingStarted_065_section.md)
+ [Getting started with load balancing](ec2_example_elastic_load_balancing_v2_GettingStarted_058_section.md)
+ [Getting started with managed streaming](ec2_example_ec2_GettingStarted_057_section.md)
+ [Getting started with network transit gateways](ec2_example_vpc_TransitGatewayGettingStarted_section.md)
+ [Getting started with video transport streaming](ec2_example_mediaconnect_GettingStarted_081_section.md)
+ [Getting started with virtual machines](ec2_example_ec2_GettingStarted_013_section.md)
+ [Run CPU stress tests on virtual machine instances using fault injection](ec2_example_iam_GettingStarted_069_section.md)
+ [Virtual private network with IP address management](ec2_example_vpc_GettingStartedIpam_section.md)
+ [Virtual private network with private servers](ec2_example_vpc_GettingStartedPrivate_section.md)
+ [Working with block storage encryption, snapshots, and volume initialization](ec2_example_ec2_GettingStarted_022_section.md)
+ [Working with network peering connections](ec2_example_ec2_GettingStarted_015_section.md)