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:
+15
-2
@@ -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}\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user