Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobilg/tile38-lambda-layer
A AWS Lambda layer for Tile38
https://github.com/tobilg/tile38-lambda-layer
Last synced: 3 months ago
JSON representation
A AWS Lambda layer for Tile38
- Host: GitHub
- URL: https://github.com/tobilg/tile38-lambda-layer
- Owner: tobilg
- License: mit
- Created: 2019-07-12T09:25:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T16:30:38.000Z (over 4 years ago)
- Last Synced: 2024-05-31T20:58:23.192Z (5 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tile38-lambda-layer
A AWS Lambda layer for Tile38## Usage
### Layer content creation
You can run `./createLayer.sh` in the root directory of this repository to create the neccessary folder structure.
### Deployment
To create the Tile38 Lambda layer in your AWS account, you can use
```bash
$ sls deploy
```This will create a layer with the `dev` stage in the `us-east-1` region. To use other stage names or regions, you can run
```bash
$ sls deploy --stage $STAGE --region $REGION
```where `$STAGE` can be any stage name you want, and `$REGION` one of the [official AWS regions](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions).
### Using the layer
You can now use the stack output `Tile38LambdaLayer` in other stacks to reference the newly created Tile38 Lambda layer.
For example, if you use Serverless, you can reference if via
```yaml
functions:
myfunction:
...
layers:
- ${cf:tile38-lambda-layer-dev.Tile38LambdaLayer}
```Note that the `dev` in the variable above is the stage of your layer service.