Skip to content

Commit a930cb3

Browse files
committed
Documentation updates
1 parent 0128411 commit a930cb3

File tree

70 files changed

+548
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+548
-411
lines changed

.DS_Store

-8 KB
Binary file not shown.

doc_source/.DS_Store

-126 KB
Binary file not shown.

doc_source/access-control-resource-based.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ To grant other accounts permission for multiple functions, or for actions that d
152152

153153
## Granting layer access to other accounts<a name="permissions-resource-xaccountlayer"></a>
154154

155-
To grant layer\-usage permission to another account, add a statement to the layer version's permissions policy with the `add-layer-version-permission` command\. In each statement, you can grant permission to a single account, all accounts, or an organization\.
155+
To grant layer\-usage permission to another account, add a statement to the layer version's permissions policy using the add\-layer\-version\-permission command\. In each statement, you can grant permission to a single account, all accounts, or an organization\.
156156

157157
```
158158
aws lambda add-layer-version-permission --layer-name xray-sdk-nodejs --statement-id xaccount \
159159
--action lambda:GetLayerVersion --principal 210987654321 --version-number 1 --output text
160160
```
161161

162-
You should see the following output:
162+
You should see output similar to the following:
163163

164164
```
165165
e210ffdc-e901-43b0-824b-5fcd0dd26d16 {"Sid":"xaccount","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::210987654321:root"},"Action":"lambda:GetLayerVersion","Resource":"arn:aws:lambda:us-east-2:123456789012:layer:xray-sdk-nodejs:1"}
166166
```
167167

168-
Permissions apply only to a single version of a layer\. Repeat the process each time that you create a new layer version\.
168+
Permissions apply only to a single layer version\. Repeat the process each time that you create a new layer version\.
169169

170170
To grant permission to all accounts in an organization, use the `organization-id` option\. The following example grants all accounts in an organization permission to use version 3 of a layer\.
171171

doc_source/applications-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ This tutorial assumes that you have some knowledge of basic Lambda operations an
3434
To complete the following steps, you need a command line terminal or shell to run commands\. Commands and the expected output are listed in separate blocks:
3535

3636
```
37-
this is a command
37+
aws --version
3838
```
3939

4040
You should see the following output:
4141

4242
```
43-
this is output
43+
aws-cli/2.0.57 Python/3.7.4 Darwin/19.6.0 exe/x86_64
4444
```
4545

4646
For long commands, an escape character \(`\`\) is used to split a command over multiple lines\.

doc_source/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For more information about best practices for Lambda applications, see [Applicat
3838
+ **Avoid using recursive code** in your Lambda function, wherein the function automatically calls itself until some arbitrary criteria is met\. This could lead to unintended volume of function invocations and escalated costs\. If you do accidentally do so, set the function reserved concurrency to `0` immediately to throttle all invocations to the function, while you update the code\.
3939

4040
## Function configuration<a name="function-configuration"></a>
41-
+ **Performance testing your Lambda function** is a crucial part in ensuring you pick the optimum memory size configuration\. Any increase in memory size triggers an equivalent increase in CPU available to your function\. The memory usage for your function is determined per\-invoke and can be viewed in [AWS CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatchLogs.html)\. On each invoke a `REPORT:` entry will be made, as shown below:
41+
+ **Performance testing your Lambda function** is a crucial part in ensuring you pick the optimum memory size configuration\. Any increase in memory size triggers an equivalent increase in CPU available to your function\. The memory usage for your function is determined per\-invoke and can be viewed in [Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatchLogs.html)\. On each invoke a `REPORT:` entry will be made, as shown below:
4242

4343
```
4444
REPORT RequestId: 3604209a-e9a3-11e6-939a-754dd98c7be3 Duration: 12.34 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 18 MB

doc_source/configuration-concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There are two types of concurrency available:
66
+ Reserved concurrency – Reserved concurrency creates a pool of requests that can only be used by its function, and also prevents its function from using unreserved concurrency\.
77
+ Provisioned concurrency – Provisioned concurrency initializes a requested number of execution environments so that they are prepared to respond to your function's invocations\.
88

9-
This topic details how to manage and configure reserved and provisioned concurrency\. To learn about how concurrency interacts with scaling, [see AWS Lambda function scaling](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html)\.
9+
This topic details how to manage and configure reserved and provisioned concurrency\. To learn about how concurrency interacts with scaling, [see Lambda function scaling](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html)\.
1010

1111
To ensure that a function can always reach a certain level of concurrency, configure the function with [reserved concurrency](#configuration-concurrency-reserved)\. When a function has reserved concurrency, no other function can use that concurrency\. Reserved concurrency also limits the maximum concurrency for the function, and applies to the function as a whole, including versions and aliases\.
1212

doc_source/configuration-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can use the Lambda console to create an Amazon RDS Proxy database proxy\.
3939
1. Choose **Add**\.
4040

4141
**Pricing**
42-
Amazon RDS charges a hourly price for proxies that that is determined by the instance size of your database\. For details, see [RDS Proxy pricing](https://aws.amazon.com/rds/proxy/pricing/)\.
42+
Amazon RDS charges a hourly price for proxies that is determined by the instance size of your database\. For details, see [RDS Proxy pricing](https://aws.amazon.com/rds/proxy/pricing/)\.
4343

4444
Proxy creation takes a few minutes\. When the proxy is available, configure your function to connect to the proxy endpoint instead of the database endpoint\.
4545

0 commit comments

Comments
 (0)