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-ruby/README.md
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,16 @@ To create a new bucket for deployment artifacts, run `1-create-bucket.sh`. Or, i
26
26
blank-ruby$ ./1-create-bucket.sh
27
27
make_bucket: lambda-artifacts-a5e491dbb5b22e0d
28
28
29
-
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.
29
+
To build a Lambda layer that contains the function's runtime dependencies, run `2-build-layer.sh`. The script installs Bundler and uses it to install the application's libraries in a folder named `lib`.
30
30
31
31
blank-ruby$ ./2-build-layer.sh
32
32
33
+
The `lib` folder is used to create a Lambda layer during deployment. Packaging dependencies in a layer reduces the size of the deployment package that you upload when you modify your code.
34
+
33
35
# Deploy
34
-
To deploy the application, run `2-deploy.sh`.
36
+
To deploy the application, run `3-deploy.sh`.
35
37
36
-
blank-ruby$ ./2-deploy.sh
38
+
blank-ruby$ ./3-deploy.sh
37
39
Uploading to e678bc216e6a0d510d661ca9ae2fd941 2737254 / 2737254.0 (100.00%)
38
40
Successfully packaged artifacts and wrote output template to file out.yml.
39
41
Waiting for changeset to be created..
@@ -43,14 +45,16 @@ To deploy the application, run `2-deploy.sh`.
43
45
This script uses AWS CloudFormation to deploy the Lambda functions and an IAM role. If the AWS CloudFormation stack that contains the resources already exists, the script updates it with any changes to the template or function code.
44
46
45
47
# Test
46
-
To invoke the function, run `3-invoke.sh`.
48
+
To invoke the function, run `4-invoke.sh`.
47
49
48
-
blank-ruby$ ./3-invoke.sh
50
+
blank-ruby$ ./4-invoke.sh
49
51
{
50
52
"StatusCode": 200,
51
53
"ExecutedVersion": "$LATEST"
52
54
}
53
55
56
+
Let the script invoke the function a few times and then press `CRTL+C` to exit.
57
+
54
58
The application uses AWS X-Ray to trace requests. Open the [X-Ray console](https://console.aws.amazon.com/xray/home#/service-map) to view the service map. The following service map shows the function calling Amazon S3.
0 commit comments