Skip to content

Commit 1168066

Browse files
authored
chore(docs): updated layer info (aws-powertools#1358)
1 parent 74afc9c commit 1168066

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/index.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ You can use Powertools in both TypeScript and JavaScript code bases.
2424

2525
## Install
2626

27-
Powertools is available in the following formats:
27+
You can install Powertools using one of the following options:
2828

2929
* **Lambda Layer**: [**arn:aws:lambda:{region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:9**](#){: .copyMe}:clipboard:
30-
* **npm**: **`npm install @aws-lambda-powertools/tracer @aws-lambda-powertools/metrics @aws-lambda-powertools/logger`**
30+
* **npm**: [`npm install @aws-lambda-powertools/tracer @aws-lambda-powertools/metrics @aws-lambda-powertools/logger`](#){: .copyMe}:clipboard:
3131

3232
### Lambda Layer
3333

34+
???+ warning "As of now, Container Image deployment (OCI) or inline Lambda functions do not support Lambda Layers."
35+
3436
[Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html){target="_blank"} is a .zip file archive that can contain additional code, pre-packaged dependencies, data, or configuration files. Layers promote code sharing and separation of responsibilities so that you can iterate faster on writing business logic.
3537

3638
You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html#invocation-layers-using){target="_blank"}, or your preferred deployment framework.
@@ -245,17 +247,16 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
245247
? Do you want to edit the local lambda function now? No
246248
```
247249

248-
=== "Get the Layer .zip contents"
249-
```bash title="AWS CLI"
250-
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{aws::region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:9 --region {region}
251-
```
252-
253-
The pre-signed URL to download this Lambda Layer will be within `Location` key.
250+
!!! info "Using Powertools via Lambda Layer? Simply add the Powertools utilities you are using as a development dependency."
254251

255-
???+ warning "Warning: Limitations"
252+
??? question "Want to inspect the contents of the Layer?"
253+
Change {region} to your AWS region, e.g. `eu-west-1`
256254

257-
Container Image deployment (OCI) or inline Lambda functions do not support Lambda Layers.
255+
```bash title="AWS CLI"
256+
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{aws::region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:9 --region {region}
257+
```
258258

259+
The pre-signed URL to download this Lambda Layer will be within `Location` key.
259260

260261
## Instrumentation
261262

0 commit comments

Comments
 (0)