You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to deploy an AutoScalingGroup, I receive the following error:
[3/4] Thu Nov 08 2018 14:44:55 GMT+1100 (Australian Eastern Daylight Time) UPDATE_FAILED [AWS::AutoScaling::AutoScalingGroup] AutoScalingGroupASG804C35BE Invalid Autoscaling rolling update policy: PauseTime must be in the ISO8601 time period format and must be no greater than PT3600S seconds, e.g. "PT5M30S" specifies a pause time of 5 minutes and 30 seconds.
Looking at the definition of RollingUpdateConfiguration, it implies that it is an optional parameter, and that a sane default will be used:
/** * The pause time after making a change to a batch of instances. * * This is intended to give those instances time to start software applications. * * Specify PauseTime in the ISO8601 duration format (in the format * PT#H#M#S, where each # is the number of hours, minutes, and seconds, * respectively). The maximum PauseTime is one hour (PT1H). * * @default 300 if the waitOnResourceSignals property is true, otherwise 0 */
pauseTimeSec?: number;
It seems that when I am using the waitOnResourceSignals as suggested, there is no default value being set. Based on this, I would call this issue a bug. The documentation also implies that I should be providing a formatted string, yet the types enforce a number.
Expected value in my synthesised yaml would be based on the above documentation is:
It's now possible to add autoscaling policies (step scaling, target
tracking, and scheduled) to AutoScalingGroup. It's also possible to add
lifecycle hooks to an AutoScalingGroup, which will publish messages to
SQS queues or SNS topics.
ALSO IN THIS COMMIT
- Fix an issue where an invalid PauseTime is generated on
AutoScalingGroup.
Fixes#1042, fixes#1113.
It's now possible to add autoscaling policies (step scaling, target
tracking, and scheduled) to AutoScalingGroup. It's also possible to add
lifecycle hooks to an AutoScalingGroup, which will publish messages to
SQS queues or SNS topics.
ALSO IN THIS COMMIT
- Fix an issue where an invalid PauseTime is generated on
AutoScalingGroup.
Fixes#1042, fixes#1113.
When attempting to deploy an
AutoScalingGroup
, I receive the following error:The snippet from my code:
Synthesising this as yaml we can see that
PauseTime
is set to an invalid valuePT
:Looking at the definition of
RollingUpdateConfiguration
, it implies that it is an optional parameter, and that a sane default will be used:It seems that when I am using the
waitOnResourceSignals
as suggested, there is no default value being set. Based on this, I would call this issue a bug. The documentation also implies that I should be providing a formatted string, yet the types enforce a number.Expected value in my synthesised yaml would be based on the above documentation is:
Manually setting the
pauseTimeSec
key to300
results in an expected yaml output:PauseTime: PT5M
The text was updated successfully, but these errors were encountered: