This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1665
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1665 by this push:
new 84d86dd [DLAB-1665]: added removal of project specific images during
project termination on aws
84d86dd is described below
commit 84d86dd60bb3d2c160f3a05b5b4b8b0e04c35186
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Mar 27 18:07:15 2020 +0200
[DLAB-1665]: added removal of project specific images during project
termination on aws
---
.../src/general/scripts/aws/project_terminate.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/infrastructure-provisioning/src/general/scripts/aws/project_terminate.py
b/infrastructure-provisioning/src/general/scripts/aws/project_terminate.py
index 7559864..3495b13 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/project_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/project_terminate.py
@@ -75,6 +75,13 @@ def terminate_edge_node(tag_name, project_name, tag_value,
nb_sg, edge_sg, de_sg
dlab.fab.append_result("Failed to remove IAM roles and profiles.",
str(err))
sys.exit(1)
+ print("Deregistering project specific notebook's AMI")
+ try:
+ dlab.actions_lib.deregister_image(project_name)
+ except Exception as err:
+ dlab.fab.append_result("Failed to deregister images.", str(err))
+ sys.exit(1)
+
print("Removing security groups")
try:
dlab.actions_lib.remove_sgroups(emr_sg)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]