python/example_code/auto-scaling/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon EC2 Auto Scaling.
<!--custom.overview.start--> <!--custom.overview.end-->Auto Scaling automatically scales EC2 instances, either with scaling policies or with scheduled scaling.
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
DescribeAutoScalingGroups)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 Auto Scaling.
python hello/hello_autoscaling.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python scenario_groups_and_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