You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -480,11 +489,24 @@ var _clusterDownCmd = &cobra.Command{
480
489
fmt.Println()
481
490
} elseifexitCode==nil||*exitCode!=0 {
482
491
out=filterEKSCTLOutput(out)
483
-
helpStr:=fmt.Sprintf("\nNote: if this error cannot be resolved, please ensure that all CloudFormation stacks for this cluster eventually become fully deleted (%s). If the stack deletion process has failed, please delete the stacks directly from the AWS console (this may require manually deleting particular AWS resources that are blocking the stack deletion)", clusterstate.CloudFormationURL(accessConfig.ClusterName, accessConfig.Region))
492
+
template:="\nNote: if this error cannot be resolved, please ensure that all CloudFormation stacks for this cluster eventually become fully deleted (%s)."
493
+
template+=" If the stack deletion process has failed, please delete the stacks directly from the AWS console (this may require manually deleting particular AWS resources that are blocking the stack deletion)."
494
+
template+=" In addition to deleting the stacks manually from the AWS console, also make sure to empty and remove the %s bucket"
fmt.Printf("\n\nfailed to set lifecycle policy to empty the %s bucket; you can remove the bucket manually via the s3 console: https://s3.console.aws.amazon.com/s3/management/%s\n", bucketName, bucketName)
505
+
errors.PrintError(err)
506
+
fmt.Println()
507
+
}
508
+
fmt.Println("✓")
509
+
488
510
// delete policy after spinning down the cluster (which deletes the roles) because policies can't be deleted if they are attached to roles
fmt.Printf("○ deleting auto-generated iam policy %s ", policyARN)
@@ -549,6 +571,7 @@ var _clusterDownCmd = &cobra.Command{
549
571
}
550
572
551
573
fmt.Printf("\nplease check CloudFormation to ensure that all resources for the %s cluster eventually become successfully deleted: %s\n", accessConfig.ClusterName, clusterstate.CloudFormationURL(accessConfig.ClusterName, accessConfig.Region))
574
+
fmt.Printf("\na lifecycle rule has been applied to the cluster’s %s bucket to empty its contents later today; you can delete the %s bucket via the s3 console once it has been emptied: https://s3.console.aws.amazon.com/s3/management/%s\n", bucketName, bucketName, bucketName)
0 commit comments