Skip to content

Commit 8b663ab

Browse files
charliejllewellynCharlie Llewellyn
andauthored
updated script to included deletion of endpoint and phz stacks (#709)
Co-authored-by: Charlie Llewellyn <cjl@amazon.co.uk>
1 parent e152a32 commit 8b663ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference-artifacts/Custom-Scripts/SEA-uninstall/aws-sea-cleanup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def process_delete(all_stacks):
9191
phases = [
9292
"-Phase5",
9393
"-Phase4",
94+
"Phase3-CentralVpcResolverEndpoints",
9495
"-Phase3",
96+
"Phase2-VpcEndpoints1",
9597
"-Phase2",
9698
"-Phase1",
9799
"-Phase0",
@@ -817,7 +819,7 @@ def cleanup_directory_sharing_load_config():
817819

818820
mad_account_name = config["global-options"]["central-operations-services"]["account"]
819821
mad_account = config["mandatory-account-configs"][mad_account_name]["account-name"]
820-
if "mad" not in config["mandatory-account-configs"][mad_account_name]["deployments"]:
822+
if "mad" not in config["mandatory-account-configs"][mad_account_name]:
821823
return "mad not configured"
822824
elif config["mandatory-account-configs"][mad_account_name]["deployments"]["mad"] == False:
823825
return "mad not configured"
@@ -875,7 +877,7 @@ def cleanup_route53_resolver_load_config():
875877
master_region = config["global-options"]["aws-org-master"]["region"]
876878

877879
central_account_name = config["global-options"]["central-operations-services"]["account"]
878-
if "mad" not in config["mandatory-account-configs"][central_account_name]["deployments"]:
880+
if "mad" not in config["mandatory-account-configs"][central_account_name]:
879881
return "mad not configured"
880882
elif config["mandatory-account-configs"][central_account_name]["deployments"]["mad"] == False:
881883
return "mad not configured"

0 commit comments

Comments
 (0)