Skip to content

Commit ae623eb

Browse files
committed
address feedback
1 parent dc3416c commit ae623eb

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

sample-apps/blank-ruby/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ To create a new bucket for deployment artifacts, run `1-create-bucket.sh`. Or, i
2626
blank-ruby$ ./1-create-bucket.sh
2727
make_bucket: lambda-artifacts-a5e491dbb5b22e0d
2828

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`.
3030

3131
blank-ruby$ ./2-build-layer.sh
3232

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+
3335
# Deploy
34-
To deploy the application, run `2-deploy.sh`.
36+
To deploy the application, run `3-deploy.sh`.
3537

36-
blank-ruby$ ./2-deploy.sh
38+
blank-ruby$ ./3-deploy.sh
3739
Uploading to e678bc216e6a0d510d661ca9ae2fd941 2737254 / 2737254.0 (100.00%)
3840
Successfully packaged artifacts and wrote output template to file out.yml.
3941
Waiting for changeset to be created..
@@ -43,14 +45,16 @@ To deploy the application, run `2-deploy.sh`.
4345
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.
4446

4547
# Test
46-
To invoke the function, run `3-invoke.sh`.
48+
To invoke the function, run `4-invoke.sh`.
4749

48-
blank-ruby$ ./3-invoke.sh
50+
blank-ruby$ ./4-invoke.sh
4951
{
5052
"StatusCode": 200,
5153
"ExecutedVersion": "$LATEST"
5254
}
5355

56+
Let the script invoke the function a few times and then press `CRTL+C` to exit.
57+
5458
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.
5559

5660
![Service Map](/sample-apps/blank-ruby/images/blank-ruby-servicemap.png)
@@ -60,6 +64,6 @@ Choose a node in the main function graph. Then choose **View traces** to see a l
6064
![Trace](/sample-apps/blank-ruby/images/blank-ruby-trace.png)
6165

6266
# Cleanup
63-
To delete the application, run `4-cleanup.sh`.
67+
To delete the application, run `5-cleanup.sh`.
6468

65-
blank-ruby$ ./4-cleanup.sh
69+
blank-ruby$ ./5-cleanup.sh

0 commit comments

Comments
 (0)