Comments (2)
There is now documentation page at https://maplibre.org/martin/run-with-lambda.html, thx to @jleedev - but it only applies to the v0.14 of Martin (not yet released). I did a pass at rewording it a bit in bdce8bb, but it may need some more love:
- add images with AWS user interface to explain how to do all these steps
- elaborate why zip deployment should use application model
- ...?
from martin.
Some context for the choice of how to talk to AWS (as a human): No real reason except that it's a useful way to ensure that the steps are reproducible. (And AWS has a million ways to do everything.)
Certainly possible to document the other method if that's simpler to follow, e.g: Create an empty directory, download the martin binary to bin/martin
, write the appropriate script to bootstrap
, zip the contents (not inside a directory, e.g. zip martin.zip bootstrap bin/martin
), upload the layer in the console, create the function in the console.
Which, perhaps, could be more instructive than "paste this yaml and a bunch of stuff happens", to explore all the objects and settings involved.
For the container deployment, actually, it's possible to use more SAM and not have to create an ECR by hand, which might be an improvement:
AWSTemplateFormatVersion: 2010-09-09
Transform: 'AWS::Serverless-2016-10-31'
Resources:
demotiles:
Type: 'AWS::Serverless::Function'
Properties:
Architectures:
- arm64
PackageType: Image
ImageConfig:
Command:
- '<tile url here>'
FunctionUrlConfig:
AuthType: NONE
Metadata:
Dockerfile: Dockerfile
DockerContext: .
And the Dockerfile
contains only the line FROM ghcr.io/maplibre/martin:main
; and it could also embed a yaml configuration file too. SAM builds the docker image locally, provisions an ECR, and pushes it.
The other advantage of CloudFormation (and SAM/CDK) is that cleanup is easier, you delete the stack and the stack deletes all the stuff.
from martin.
Related Issues (20)
- Font endpoint gives 404 but the font seems loaded HOT 2
- HowTo Provide Multiple PG Connections in Config HOT 5
- Tiles are not displayed HOT 1
- add property data to tile HOT 2
- use function with query parameters. How?!
- if it is possible to load postgre function source automatically HOT 2
- uploading tiles slows down extremely HOT 1
- dynamic TileJSONs HOT 3
- very slow queries through martin HOT 11
- Impossible to run when I use PGPool
- Unable to get tile, connection closed
- Error when deploy by AWS Lamda: Unable to load config file .yaml: No such file or directory (os error 2) HOT 2
- Unable to generate spritesheet
- [Feat]Can you support OGC's WFS, or do you have any recommended options for Martin's use?
- Loading sprites is very slow with big SVG HOT 3
- If sprites are in k8s configMap, image names get garbled
- Re-scan of MBTiles directory after adding new files HOT 1
- Add png-image support when generating sprite
- Even distributed features HOT 1
- How To Debug? Cannot Fetch Tiles When Serving From Mbtiles HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martin.