Difference between revisions of "Terraform resource: aws appautoscaling target"
Jump to navigation
Jump to search
↑ https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target
Line 1: | Line 1: | ||
*<code>aws_appautoscaling_target</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target</ref> | *<code>aws_appautoscaling_target</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target</ref> | ||
− | + | == ECS Example == | |
resource "aws_appautoscaling_target" "ecs_target" { | resource "aws_appautoscaling_target" "ecs_target" { | ||
[[max_capacity]] = 4 | [[max_capacity]] = 4 | ||
Line 9: | Line 9: | ||
service_namespace = "ecs" | service_namespace = "ecs" | ||
} | } | ||
+ | |||
+ | == Related == | ||
+ | [[aws_appautoscaling_policy]] | ||
== See also == | == See also == |
Revision as of 21:00, 22 September 2022
aws_appautoscaling_target
[1]
ECS Example
resource "aws_appautoscaling_target" "ecs_target" { max_capacity = 4 min_capacity = 1 resource_id = "service/${aws_ecs_cluster.example.name}/${aws_ecs_service.example.name}" scalable_dimension = "ecs:service:DesiredCount" service_namespace = "ecs" }
Related
aws_appautoscaling_policy
See also
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: