From 13add0a8f72d6621fe0942f0c683530782243765 Mon Sep 17 00:00:00 2001 From: Iakov Gan Date: Sat, 11 Nov 2023 22:26:45 +0100 Subject: [PATCH] disable delete of wg and bucket --- cfn-templates/cid-cfn.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/cfn-templates/cid-cfn.yml b/cfn-templates/cid-cfn.yml index 1391a4c4..30f4ae37 100644 --- a/cfn-templates/cid-cfn.yml +++ b/cfn-templates/cid-cfn.yml @@ -528,6 +528,7 @@ Resources: def on_delete(): # Delete bucket (CF cannot delete if they are non-empty) # and delete WorkGroup (CF cannot do that) + return (True, 'on_delete is disabled. you will need to delete bucket and workgroup on your own') s3 = boto3.resource('s3') log = []