-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
In AutoScalingGroup properties, we have 3 ways to update an ASG :
NONE
REPLACING_UPDATE
ROLLING_UPDATE
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-autoscaling.AutoScalingGroup.html
In the 2 last update types, we need to wait for a CfnSignal, even if waitOnResourceSignals is set to : false and without minSuccessfulInstancesPercent prop, for ROLLING_UPDATE type.
I've started to try with the command in my UserData file :
cfn-signal --region ${Region} --resource ${Resource} --stack ${StackName}
And Sub on my TypeScript snippet :
cdk.Fn.base64(cdk.Fn.sub(fs.readFileSync('data/userdata/userdata.sh','utf8'), {
[...]
'Region': AppAccountRegion, 'Resource': 'AutoScalingGroup', 'StackName': stackName
}));
But I have issue on using my UserData from a file (#8161 (comment)).
-
Maybe you can add examples to use Signal ?
-
Or provide a way to 'cfn-signal like eladb mention there :
ec2: cfn-init support in ASGs #1413 (comment)
This is a 📕 documentation issue