Skip to content

Commit f6d8220

Browse files
committed
Force destroy aws resources
1 parent b55a464 commit f6d8220

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test_aws_integration.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,7 @@ jobs:
142142
### CLEANUP AFTER TESTS
143143
- name: Cleanup nebari deployment
144144
if: always()
145-
working-directory: ${{ steps.init.outputs.directory }}
146-
run: nebari destroy --config ${{ steps.init.outputs.config }} --disable-prompt
145+
run: |
146+
ls
147+
ls scripts
148+
python scripts/aws-force-destroy.py --config ${{ steps.init.outputs.config }}

scripts/aws-force-destroy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import time
44
from pathlib import Path
55

6-
from _nebari.utils import check_cloud_credentials, load_yaml, timer
6+
from _nebari.utils import load_yaml, timer
77

88
logging.basicConfig(level=logging.INFO)
99

@@ -55,8 +55,6 @@ def force_destroy_configuration(config):
5555

5656
with timer(logging, "destroying nebari"):
5757
# 01 Check we have cloud details we need
58-
check_cloud_credentials(config)
59-
6058
if config.get("provider", "") != "aws":
6159
raise ValueError("force-destroy currently only available for AWS")
6260

0 commit comments

Comments
 (0)