1
0
mirror of synced 2026-05-22 22:53:35 +00:00

Delete .bedrock_agentcore.yaml file during clean up (#1318)

* Delete .bedrock_agentcore.yaml file during clean up to allow for consequtive notebook executions

* Remove -rf from !rm command
This commit is contained in:
goku
2026-04-15 17:26:46 +03:00
committed by GitHub
parent d4b3f6389a
commit 9730eff02b
@@ -48,7 +48,13 @@
{
"cell_type": "markdown",
"id": "3a676f58ecf52b42",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"## Prerequisites\n",
"\n",
@@ -686,7 +692,14 @@
" )\n",
" print(f\"✅ Second ECR repository '{launch_result_short.ecr_uri.split('/')[1]}' deleted\")\n",
" except Exception as e:\n",
" print(f\"⚠️ Failed to delete second ECR repository: {e}\")"
" print(f\"⚠️ Failed to delete second ECR repository: {e}\")\n",
"\n",
"# --- Delete local file to allow for consequtive executions of the notebook ---\n",
"try:\n",
" !rm .bedrock_agentcore.yaml\n",
" print(f\"✅ .bedrock_agentcore.yaml deleted\")\n",
"except Exception as e:\n",
" print(f\"⚠️ Failed to delete .bedrock_agentcore.yaml: {e}\")"
]
},
{