Hello! How do I specify auto scaling for fargate?
# python
q
Hello! How do I specify auto scaling for fargate?
s
App autoscaling and cloudwatch
q
Autoscaling is defined in the service for fargate. But I could not find a way to specify it there.
Copy code
service = aws.ecs.Service('app-svc',
	cluster=cluster.arn,
    desired_count=1,
    launch_type='FARGATE',
    task_definition=task_definition.arn,
    network_configuration={
		'assign_public_ip': 'true',
		'subnets': default_vpc_subnets.ids,
		'security_groups': [group.id]
	},
    load_balancers=[{
		'target_group_arn': atg.arn,
		'container_name': 'app',
		'container_port': 8080
	}],
    opts=ResourceOptions(depends_on=[wl]),
)
Could you point me to the docs if there is a way?
s
Its appautoscaling and cloudwatch. Here is the link to appautoscaling. In the gui they make it look like its “apart” of the service, but its not. https://www.pulumi.com/docs/reference/pkg/aws/appautoscaling/