Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.66 KB

File metadata and controls

38 lines (25 loc) · 1.66 KB

AWS SDK for Rust code examples for Application Auto Scaling

Application Auto Scaling enables auto scaling for resources beyond just EC2, either with scaling policies or with scheduled scaling.

Purpose

These examples demonstrate how to perform several Application Auto Scaling operations using the alpha version of the AWS SDK for Rust.

Prerequisites

You must have an AWS account, and have configured your default credentials and AWS Region as described in https://github.com/awslabs/aws-sdk-rust.

Running the code

describe-scaling-policies

This example lists your Application Auto Scaling policies in the Region.

cargo run --bin describe-scaling-policies -- [-r REGION] [-v]

  • REGION is name of the Region where the stacks are located. If not supplied, uses the value of the AWS_REGION environment variable. If the environment variable is not set, defaults to us-west-2.
  • -v displays additional information.

Notes

  • We recommend that you grant this code least privilege, or at most the minimum permissions required to perform the task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
  • This code has not been tested in all AWS Regions. Some AWS services are available only in specific Regions.
  • Running this code might result in charges to your AWS account.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0