https://pulumi.com logo
#python
Title
# python
c

chilly-hairdresser-56259

06/11/2020, 7:29 PM
Copy code
appautoscalingTarget = aws.appautoscaling.Target(
        resource_name= "%s-%s-%s-asg-target" % (p_env, tasks[x]['application'], tasks[x]['service']),
        min_capacity= tasks[x]['minimumCapacity'],
        max_capacity= tasks[x]['maximumCapacity'],
        resource_id= f"service/{service[0].name}/{ecs_cluster.name}",
        scalable_dimension= "ecs:service:DesiredCount",
        service_namespace= "ecs"
    )