An open API service indexing awesome lists of open source software.

https://github.com/stackguardian/module-tf-aws-app-autoscaling


https://github.com/stackguardian/module-tf-aws-app-autoscaling

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# module-tf-aws-app-autoscaling
Terraform module for AWS Application Autoscaling

----

## Terraform Registry
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_policy

----

## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| aws | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| aws\_appautoscaling\_policy\_config | Settings for AWS Appautoscaling Policy
JSON tfvars Exmaple:
"aws\_appautoscaling\_policy\_config": {
"policy\_type": "TargetTrackingScaling",
"target\_tracking\_scaling\_policy\_configurations": [
{
"target\_value": 70,
"predefined\_metric\_specifications": [
{
"predefined\_metric\_type": "DynamoDBReadCapacityUtilization"
}
]
}
],
"step\_scaling\_policy\_configurations": []
} |

object({
policy_type = string
step_scaling_policy_configurations = list(object({
cooldown = string
metric_aggregation_type = string
min_adjustment_magnitude = string
step_adjustment = list(map(string))
}))
target_tracking_scaling_policy_configurations = list(object({
target_value = number
disable_scale_in = string
scale_in_cooldown = string
scale_out_cooldown = string
customized_metric_specifications = list(object({
metric_name = string
namespace = string
statistic = string
unit = string
dimensions = list(map(string))
}))
predefined_metric_specifications = list(map(string))
}))
})
| `null` | no |
| aws\_appautoscaling\_target\_config | Settings for AWS Appautoscaling Target
JSON tfvars Exmaple:
"aws\_appautoscaling\_target\_config": {
"max\_capacity" : 100,
"min\_capacity" : 5,
"resource\_id" : "table/MyTable", #more info: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html#autoscaling-RegisterScalableTarget-request-ResourceId
"role\_arn" : "arn:......."
"scalable\_dimension" : "dynamodb:table:ReadCapacityUnits", #more info: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html#autoscaling-RegisterScalableTarget-request-ScalableDimension
"service\_namespace" : "dynamodb" #more info: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html#autoscaling-RegisterScalableTarget-request-ServiceNamespace
} | `map(string)` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| arn | The ARN assigned by AWS to the scaling policy |
| name | The scaling policy's name |
| policy\_type | The scaling policy's type |