Skip to content

Commit 0821634

Browse files
committed
aws: Bypass the graceful OS shutdown process on cluster deletion
Signed-off-by: Ciprian Hacman <[email protected]>
1 parent 9da9d96 commit 0821634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/resources/aws/aws.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ func DeleteInstances(cloud fi.Cloud, t []*resources.Resource) error {
336336

337337
klog.Infof("Terminating %d EC2 instances", len(ids))
338338
request := &ec2.TerminateInstancesInput{
339-
InstanceIds: ids,
339+
InstanceIds: ids,
340+
SkipOsShutdown: aws.Bool(true),
340341
}
341342
ids = []string{}
342343
_, err := c.EC2().TerminateInstances(ctx, request)

0 commit comments

Comments
 (0)