I am creating an autoscaling policy for my ASG, however, I’d like to disable it first after creating.
resource “aws_autoscaling_policy” “custom-v2-autoscale-down” {
name = “custom-v2-autoscale-down”
autoscaling_group_name = aws_autoscaling_group.v2.name
policy_type = var.ec2_asg_scale_down_policy_type
cooldown = var.ec2_asg_scale_down_cooldown_seconds
adjustment_type = var.ec2_asg_scale_down_adjustment_type
min_adjustment_magnitude = var.ec2_asg_scale_down_min_adjustment_magnitude
scaling_adjustment = var.ec2_asg_scale_down_scaling_adjustment
Enabled = false ******* looks like it doesn’t support. but in cloud formation, there is an option. ****
}