Skip to content

Commit 17c167a

Browse files
authored
Merge pull request #17670 from hakman/skip-os-shutdown
aws: Bypass the graceful OS shutdown process on cluster deletion
2 parents 9da9d96 + 0821634 commit 17c167a

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)