acoustic-spring-42110
06/23/2022, 6:06 PMaws.appautoscaling.Target
, an aws.appautoscaling.Policy
that's set to StepScaling
and a aws.cloudwatch.MetricAlarm
that has its alarmActions
set to the ARN of the policy... pulumi compiles just fine, I see the resources in the stack.. but like.. I DONT see the autoscaling policy attached to the cluster in the AWS console and I'm not totally sure why. I've been staring at this for a couple hours, so I'm just kinda stepping away to clear my head before I jump back to it.billowy-army-68599
acoustic-spring-42110
06/23/2022, 6:17 PMaws.appautoscaling.Target
sets the resourceId (service/cluster_name/service_name) and the aws.appautoscaling.Policy
references that as wellbillowy-army-68599
acoustic-spring-42110
06/23/2022, 6:20 PMbillowy-army-68599
aws.appautoscaling.Target
resource code?acoustic-spring-42110
06/23/2022, 6:28 PMconst cpuStepScalingTarget = new aws.appautoscaling.Target("ecsTarget", {
maxCapacity: 5,
minCapacity: 1,
serviceNamespace: "ecs",
resourceId: pulumi.interpolate`service/${app.cluster.cluster.name}/${app.service.name}`,
scalableDimension: "ecs:service:DesiredCount",
});
Where app
is awsx.ecs.FargateService
that is successfully being created.billowy-army-68599
acoustic-spring-42110
06/23/2022, 6:40 PM