AWS Auto Scaling Scaling Plan

This page shows how to write Terraform and CloudFormation for AWS Auto Scaling Scaling Plan and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_autoscalingplans_scaling_plan)

Manages an AWS Auto Scaling scaling plan. More information can be found in the AWS Auto Scaling User Guide.

NOTE: The AWS Auto Scaling service uses an AWS IAM service-linked role to manage predictive scaling of Amazon EC2 Auto Scaling groups. The service attempts to automatically create this role the first time a scaling plan with predictive scaling enabled is created. An aws_iam_service_linked_role resource can be used to manually manage this role. See the AWS documentation for more details.

Parameters

Example Usage (from GitHub)

github-iconAliakbarkh/Terraform-CI-CD
resource "aws_autoscalingplans_scaling_plan" "main" {
  name = "example-dynamic-cost-optimization"

  application_source {
    tag_filter {
      key    = "application"
github-iconmhmd-deniafendi/terraform-live
resource "aws_autoscalingplans_scaling_plan" "example" {
  name = "example-dynamic-cost-optimization"

  application_source {
    tag_filter {
      key    = "application"
github-icondarnele868410/COALFIREASSESMENT
resource "aws_autoscalingplans_scaling_plan" "RHEL_Scaling_Plan" {
  name = "RHEL_Scaling_Plan"

  application_source {
    tag_filter {
      key    = "name"

CloudFormation Example (AWS::AutoScalingPlans::ScalingPlan)

The AWS::AutoScalingPlans::ScalingPlan resource defines an AWS Auto Scaling scaling plan. A scaling plan is used to scale application resources to size them appropriately to ensure that enough resource is available in the application at peak times and to reduce allocated resource during periods of low utilization. The following resources can be added to a scaling plan:+ Amazon EC2 Auto Scaling groups+ Amazon EC2 Spot Fleet requests+ Amazon ECS services+ Amazon DynamoDB tables and global secondary indexes+ Amazon Aurora ReplicasFor more information, see the AWS Auto Scaling User Guide.

Parameters

Frequently asked questions

What is AWS Auto Scaling Scaling Plan?

AWS Auto Scaling Scaling Plan is a resource for Auto Scaling of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Auto Scaling Scaling Plan?

For Terraform, the Aliakbarkh/Terraform-CI-CD, mhmd-deniafendi/terraform-live and darnele868410/COALFIREASSESMENT source code examples are useful. See the Terraform Example section for further details.