# general


05/12/2023, 3:54 PM
Greetings everyone. We're creating an
for an ECS service. This generates a MetricAlarm in cloudwatch automatically. Is there a way to specify the Tags for the underlying MetricAlarm that is generated? There is no Tags property exposed for the Policy itself or any of the configuration properties. Using dotnet with Pulumi.Aws 5.18.0. Example code below of how the policy is configured for example:
Copy code
var autoScalePolicy = new AutoScaling.Policy($"{resourceIdentityPrefix}-asp", new AutoScaling.PolicyArgs
    PolicyType = "TargetTrackingScaling",
    TargetTrackingScalingPolicyConfiguration = new AutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationArgs
        PredefinedMetricSpecification = new AutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs
            PredefinedMetricType = "ECSServiceAverageCPUUtilization"
        TargetValue = 65.0,
        ScaleInCooldown = 60,
        ScaleOutCooldown = 60
    ScalableDimension = autoScaleTarget.ScalableDimension,
    ServiceNamespace = autoScaleTarget.ServiceNamespace,
    ResourceId = autoScaleTarget.ResourceId
    // How do we define Tags? There is no Tags property