php/example_code/auto-scaling/README.md
Shows how to use the AWS SDK for PHP 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 php folder.
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.
From the aws-doc-sdk-examples/php/auto-scaling/ directory:
Install dependencies by using Composer:
composer install
After your Composer dependencies are installed, you can run the example with the following command:
php Runner.php
This example shows you how to get started using Auto Scaling.
This example shows you how to do the following:
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the php folder.
Install dependencies by using Composer:
composer install
Run the tests with the following command:
../vendor/bin/phpunit AutoScalingBasicsTests.php
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0