From 8fe16aeaf40780dc5bb87bd8dd1d3bfdba2a932c Mon Sep 17 00:00:00 2001 From: AbdulRehman Faraj Date: Thu, 23 Jan 2025 01:19:45 +0000 Subject: [PATCH] Clean up ECR Repo per Connector if exits --- validation_testing/run_cleanup_infra.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validation_testing/run_cleanup_infra.sh b/validation_testing/run_cleanup_infra.sh index 6d025a29fe..9fc22cb4cf 100644 --- a/validation_testing/run_cleanup_infra.sh +++ b/validation_testing/run_cleanup_infra.sh @@ -56,6 +56,11 @@ fi cd $(dirname $(find . -name ATHENA_INFRA_SPINUP_ROOT))/app; prefix="${CONNECTOR_NAME}CdkStack" +#### Clean up ECR Repo +echo "Deleting athena-federation-repository-${CONNECTOR_NAME} ECR Repo" +aws ecr delete-repository --repository-name "athena-federation-repository-${CONNECTOR_NAME}" --force + +#### Finall destroy the stack npm install; npm run build; npm run cdk synth;