python/example_code/ec2/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Elastic Compute Cloud (Amazon EC2).
<!--custom.overview.start--> <!--custom.overview.end-->Amazon EC2 is a web service that provides resizable computing capacity—literally, servers in Amazon's data centers—that you use to build and host your software systems.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
DescribeSecurityGroups)Code examples that show you how to perform the essential operations within a service.
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
<!--custom.examples.start--> <!--custom.examples.end-->This example shows you how to get started using Amazon EC2.
python hello/hello_ec2.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python scenario_get_started_instances.py
This example shows you how to create a load-balanced web service that returns book, movie, and song recommendations. The example shows how the service responds to failures, and how to restructure the service for more resilience when failures occur.
Start the example by running the following at a command prompt:
python ../../cross_service/resilient_service/runner.py
Complete details and instructions on how to run this example can be found in the README for the example.
<!--custom.scenarios.cross_ResilientService.end-->⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0