Hi, I'm migrating a Cloudformation configuration ...
# aws
c
Hi, I'm migrating a Cloudformation configuration to Pulumi and I'm trying to implement a ScalingPolicy: https://www.pulumi.com/registry/packages/aws-native/api-docs/autoscaling/scalingpolicy/, I need to define a ScalingTargetId, similar as here (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html):
Copy code
Resources:
  TargetTrackingScalingPolicy:
    Type: AWS::ApplicationAutoScaling::ScalingPolicy
    Properties:
      PolicyName: cpu75-target-tracking-scaling-policy
      PolicyType: TargetTrackingScaling
      ScalingTargetId: !Ref ScalableTarget
      TargetTrackingScalingPolicyConfiguration:
        TargetValue: 75.0
        ScaleInCooldown: 60
        ScaleOutCooldown: 60
        PredefinedMetricSpecification:
          PredefinedMetricType: ECSServiceAverageCPUUtilization
I can't find a way to do that in Pulumi
b
Here are some examples for an ECS Fargate Cluster/Service. They're just snippets, so there's some things in there that might not make complete sense without context, but it should get you started.