You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sample-apps/blank-python/README.md
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -11,29 +11,35 @@ The project source includes function code and supporting resources:
11
11
Use the following instructions to deploy the sample application.
12
12
13
13
# Requirements
14
-
-[Python 3.7](https://www.python.org/downloads/). Sample also works with Python 3.8 and 3.9.
14
+
-[Python 3.11](https://www.python.org/downloads/). Sample also works with Python 3.9.
15
15
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
16
16
-[The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) v1.17 or newer.
cd aws-lambda-developer-guide/sample-apps/blank-python
23
23
24
24
To create a new bucket for deployment artifacts, run `1-create-bucket.sh`.
25
25
26
-
blank-python$ ./1-create-bucket.sh
26
+
./1-create-bucket.sh
27
+
28
+
Example output:
29
+
27
30
make_bucket: lambda-artifacts-a5e491dbb5b22e0d
28
31
29
32
To build a Lambda layer that contains the function's runtime dependencies, run `2-build-layer.sh`. Packaging dependencies in a layer reduces the size of the deployment package that you upload when you modify your code.
30
33
31
-
blank-python$ ./2-build-layer.sh
34
+
./2-build-layer.sh
32
35
33
36
# Deploy
34
37
To deploy the application, run `3-deploy.sh`.
35
38
36
-
blank-python$ ./3-deploy.sh
39
+
./3-deploy.sh
40
+
41
+
Example output:
42
+
37
43
Uploading to e678bc216e6a0d510d661ca9ae2fd941 9519118 / 9519118.0 (100.00%)
38
44
Successfully packaged artifacts and wrote output template to file out.yml.
39
45
Waiting for changeset to be created..
@@ -45,7 +51,10 @@ This script uses AWS CloudFormation to deploy the Lambda functions and an IAM ro
45
51
# Test
46
52
To invoke the function, run `4-invoke.sh`.
47
53
48
-
blank-python$ ./4-invoke.sh
54
+
./4-invoke.sh
55
+
56
+
Example output:
57
+
49
58
{
50
59
"StatusCode": 200,
51
60
"ExecutedVersion": "$LATEST"
@@ -65,4 +74,4 @@ Choose a node in the main function graph. Then choose **View traces** to see a l
0 commit comments