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
- Host: GitHub
- URL: https://github.com/stackguardian/module-tf-aws-app-autoscaling
- Owner: StackGuardian
- Created: 2021-05-16T13:19:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-12T13:25:45.000Z (almost 5 years ago)
- Last Synced: 2025-02-05T08:51:27.665Z (over 1 year ago)
- Language: HCL
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |