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
* Add a cdk app capable of building and publishing Lambda Layer
* add github action for e2e
* add local layer construct npm package
* disable fail fast
* fix RUNTIME naming in matrix
* fix tests
* fix outputs export name
* Add capability to pass package version to layer builder/publisher
* Add initial doc
* Add github workflows
* add gitignore
* fix install deps
* pass layer name
* make layer public and store details in ssm
* fix e2e tests
* fix context
* remvove groups for tests
* publish layer on release
* fix account in doc
* fix test deps
* deploy to all region
* fix account number for layer
* fix unit tests
* add install for layer deps in pr workflow
* run unit test of layer publisher for supported node versions only
* fix node version in doc
* add node 16 to layer e2e
* fix comments
* fix doc
* rename layer to TypeScript
* take care of comments
* remove layer from doc for now
* remove pasted commenbt
* chore(build): broke up pr workflow & measure package size (#1031)
* chore: broke up pr workflow & measure package size
* chore: explicitly set packages where to run cmds
* fix: added missing dependency to examples/sam
* added cache in workflow
* chore: updated workflow + removed env var from command
* chore: updated action version
* fix: removed redundant env variable
Co-authored-by: Florian Chazal <chazalf@amazon.com>
Co-authored-by: Andrea Amorosi <dreamorosi@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,18 @@ Find the complete project's [documentation here](https://awslabs.github.io/aws-l
33
33
34
34
### Installation
35
35
36
+
You have 2 ways of consuming those utilities:
37
+
* NPM modules
38
+
* Lambda Layer
39
+
40
+
#### Lambda layers
41
+
42
+
The AWS Lambda Powertools for TypeScript utilities is packaged as a single [AWS Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-concepts.html#gettingstarted-concepts-layer)
43
+
44
+
👉 [Installation guide for the **AWS Lambda Powertools for TypeScript** layer](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/#lambda-layer)
45
+
46
+
#### NPM modules
47
+
36
48
The AWS Lambda Powertools for TypeScript utilities follow a modular approach, similar to the official [AWS SDK v3 for JavaScript](https://github.com/aws/aws-sdk-js-v3).
37
49
Each TypeScript utility is installed as standalone NPM package.
# Lambda Powertools for TypeScript Layer Publisher
2
+
3
+
This CDK app is meant to be used to publish Powertools for TypeScript Lambda Layer. It is composed of a single stack deploying the Layer into the target account.
4
+
5
+
# Usage
6
+
7
+
```sh
8
+
npm ci
9
+
npm run cdk deploy
10
+
```
11
+
12
+
By default it will package the layer with the latest version publicly available but you can force the public version to use with `PowerToolsPackageVersion` context variable:
13
+
```sh
14
+
npm run cdk deploy -- --context PowerToolsPackageVersion='0.9.0'
15
+
```
16
+
17
+
# Tests
18
+
19
+
## Units
20
+
21
+
```sh
22
+
npm run test
23
+
```
24
+
25
+
## E2E
26
+
27
+
This will deploy and destroy several stacks in your AWS Account
28
+
29
+
```sh
30
+
npm run test:e2e
31
+
```
32
+
33
+
PS: You can force
34
+
* the lambda runtime to test with the RUNTIME env variable
35
+
* the Powertools version with VERSION env variable
0 commit comments