From f7e15faa883f5c763bcc9835beb7467e026fd7c0 Mon Sep 17 00:00:00 2001 From: Tim <103955721+timnolan1@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:14:07 -0400 Subject: [PATCH] Update python-package.md For deploying packages with python dependencies, the requests package is used. Since requests now comes bundled into python3.7+ I suggest you choose a different package and code snippet. Sure, this still illustrates the point of bundling, but might give the user a false sense of security if they forgot the pip install command. --- doc_source/python-package.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/python-package.md b/doc_source/python-package.md index 0f757e90..28e95358 100644 --- a/doc_source/python-package.md +++ b/doc_source/python-package.md @@ -100,7 +100,7 @@ Create the \.zip file for your deployment package\. 1. Copy the contents of the following sample Python code and save it in a new file named `lambda_function.py`: ``` - import requests + import requests # I recommend using a different package because requests is now included in base python3.7+ def lambda_handler(event, context): response = requests.get("https://www.test.com/") print(response.text) @@ -215,4 +215,4 @@ The following example uploads a file named my\-deployment\-package\.zip\. Use th "RevisionId": "5afdc7dc-2fcb-4ca8-8f24-947939ca707f", ... } -``` \ No newline at end of file +```