Skip to content

Using Signal when updating an AutoScalingGroup  #8162

@Cloudrage

Description

@Cloudrage

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)).


This is a 📕 documentation issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-autoscalingRelated to Amazon EC2 Auto Scalingclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions