Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitner/mapserverless-layer
An AWS Lambda Layer for UMN MapServer
https://github.com/bitner/mapserverless-layer
Last synced: 1 day ago
JSON representation
An AWS Lambda Layer for UMN MapServer
- Host: GitHub
- URL: https://github.com/bitner/mapserverless-layer
- Owner: bitner
- License: mit
- Created: 2019-04-14T15:07:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T20:40:31.000Z (over 5 years ago)
- Last Synced: 2024-10-26T23:55:29.273Z (16 days ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MapServerless AWS Lambda Layer
MapServerless is a perhaps useless, perhaps awesome way to run Mapserver in AWS Lambda. An example of how to deploy this layer can be found at [https://github.com/bitner/mapserverless].
This build is based on [https://github.com/developmentseed/geolambda]
Pull requests always welcome!
### Create a new version
Use the Dockerfile here as a template for your own version of MapServerless. Simply edit it to remove or add additional libraries.
To create a new version of MapServerless follow these steps.
1. Build the Docker
```
$ docker build -t mapserverless .
```2. Create deployment package using the built-in [packaging script](bin/package.sh)
```
$ docker run --rm -v $PWD:/home/mapserverless \
-it mapsesrverless package.sh
```This will create a lambda/ directory containing the native libraries and related files, along with a `lambda-deploy.zip` file that can be deployed as a Lambda layer.
3. Push as Lambda layer (if layer already exists a new version will be created)
```
$ aws lambda publish-layer-version \
--layer-name mapserverless \
--license-info "MIT" \
--description "MapServer AWS Lambda" \
--zip-file fileb://lambda-deploy.zip
```4. Make layer public (needs to be done each time a new version is published)
```
$ aws lambda add-layer-version-permission --layer-name mapserverless \
--statement-id public --version-number 1 --principal '*' \
--action lambda:GetLayerVersion
```