in cdk/nodegroup/lambda/attach-multus-eni.py [0:0]
def complete_lifecycle_action_success(hookname,groupname,instance_id):
try:
asg_client.complete_lifecycle_action(
LifecycleHookName=hookname,
AutoScalingGroupName=groupname,
InstanceId=instance_id,
LifecycleActionResult='CONTINUE'
)
log("Lifecycle hook CONTINUEd for: {}".format(instance_id))
except botocore.exceptions.ClientError as e:
log("Error completing life cycle hook for instance {}: {}".format(instance_id, e.response['Error']))
log('{"Error": "1"}')