

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

The following code examples show you how to implement common scenarios in Amazon EC2 with Amazon SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions within Amazon EC2 or combined with other Amazon Web Services 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](example_cross_ResilientService_section.md)
+ [Configure Amazon ECS Service Connect](example_ecs_ServiceConnect_085_section.md)
+ [Create a basic VPC](example_vpc_GettingStartedCLI_section.md)
+ [Create an Amazon ECS Linux task for the Fargate launch type](example_ecs_GettingStarted_086_section.md)
+ [Creating an Amazon ECS service for the EC2 launch type](example_ecs_GettingStarted_018_section.md)
+ [Creating an Amazon RDS DB instance](example_rds_GettingStarted_036_section.md)
+ [Creating and managing Amazon EBS volumes](example_ec2_GettingStarted_020_section.md)
+ [Creating and managing a VPC Lattice service network](example_vpc_lattice_GettingStarted_055_section.md)
+ [Get started with Aws Direct Connect](example_directconnect_GettingStarted_051_section.md)
+ [Get started with Marketplace Buyer](example_ec2_GettingStarted_030_section.md)
+ [Getting started with Amazon DocumentDB](example_docdb_GettingStarted_025_section.md)
+ [Getting started with Amazon EC2](example_ec2_GettingStarted_013_section.md)
+ [Getting started with Amazon EMR](example_emr_GettingStarted_037_section.md)
+ [Getting started with Amazon ElastiCache](example_ec2_GettingStarted_065_section.md)
+ [Getting started with Amazon MSK](example_ec2_GettingStarted_057_section.md)
+ [Getting started with Amazon Neptune](example_ec2_GettingStarted_064_section.md)
+ [Getting started with Amazon VPC Transit Gateway](example_vpc_TransitGatewayGettingStarted_section.md)
+ [Getting started with Elastic Load Balancing](example_elastic_load_balancing_v2_GettingStarted_058_section.md)
+ [Getting started with Elemental MediaConnect](example_mediaconnect_GettingStarted_081_section.md)
+ [Run CPU stress tests on EC2 instances using FIS](example_iam_GettingStarted_069_section.md)
+ [VPC with IPAM](example_vpc_GettingStartedIpam_section.md)
+ [VPC with private servers](example_vpc_GettingStartedPrivate_section.md)
+ [Working with Amazon EBS encryption, snapshots, and volume initialization](example_ec2_GettingStarted_022_section.md)
+ [Working with VPC peering connections](example_ec2_GettingStarted_015_section.md)