clever-glass-42863
05/12/2023, 3:54 PMAWS.AppAutoScaling.Policy
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:
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
});
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by