cuddly-smartphone-15267
09/10/2021, 3:00 AMElasticBeanstalk
creates an Environment
, one of the outputs is autoscalingGroups
. I'd like to update the auto scaling group(s) to enable metrics collection. This doesn't appear to be possible in the EBS initialisation options so I think i might need to update it afterwards.
i tried something like this:
const autoScalingGroup = Group.get(`autoscaling`, environment.autoscalingGroups[0]);
autoScalingGroup.enabledMetrics = [`GroupDesiredCapacity`, `GroupInServiceCapacity`, `GroupPendingCapacity`, `GroupMinSize`, `GroupMaxSize`, `GroupInServiceInstances`, `GroupPendingInstances`, `GroupStandbyInstances`, `GroupStandbyCapacity`, `GroupTerminatingCapacity`, `GroupTerminatingInstances`, `GroupTotalCapacity`, `GroupTotalInstances`];
but the property is readonlylittle-cartoon-10569
09/10/2021, 4:02 AMcuddly-smartphone-15267
09/10/2021, 4:16 AMpulumi up
, run (something like) `aws autoscaling enable-metrics-collection --auto-scaling-group-name `pulumi stack output autoscalingGroup``
and that would form part of the 'build' script?bored-table-20691
09/10/2021, 4:32 AMcuddly-smartphone-15267
09/10/2021, 4:37 AMbored-table-20691
09/10/2021, 5:21 AMcuddly-smartphone-15267
09/10/2021, 6:37 AM