Skip to content

Commit f9fc82f

Browse files
committed
add Clean up section into README.md
1 parent 4f8d696 commit f9fc82f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,25 @@ command.
300300
FROM iceberg_demo_db.iceberg_demo_table;
301301
</pre>
302302

303+
## Clean Up
304+
305+
1. Stop the glue job by replacing the job name in below command.
306+
307+
<pre>
308+
(.venv) $ JOB_RUN_IDS=$(aws glue get-job-runs \
309+
--job-name streaming_data_from_kds_into_iceberg_table | jq -r '.JobRuns[] | select(.JobRunState=="RUNNING") | .Id' \
310+
| xargs)
311+
(.venv) $ aws glue batch-stop-job-run \
312+
--job-name streaming_data_from_kds_into_iceberg_table \
313+
--job-run-ids $JOB_RUN_IDS
314+
</pre>
315+
316+
2. Delete the CloudFormation stack by running the below command.
317+
318+
<pre>
319+
(.venv) $ cdk destroy --all
320+
</pre>
321+
303322
## Useful commands
304323

305324
* `cdk ls` list all stacks in the app

0 commit comments

Comments
 (0)