Comments (3)
Thanks @hounded for the input: I have recently arrived to the same idea: we need support for Lambda that already exist. I'm split mind of how exactly:
Option 1: follow the AWS model and separate Lambdas from Lambda definitions. So that greengo.yaml
will have two separate sections: Lambdas
, where lambda functions defined in AWS Lambda, and LambdaDefinitions
, which refer to both Lambdas defined inside greengo, and outside, by name. This is ideologically similar to your proposal just semantically different.
Option 2: keep Lambdas in one section for simplicity (don't expose AWS dirty underwear) but offer to refer existing Lambda by ARN... and may be by name? The absense of handler
will indicate that the function is existing.
Lambdas:
- name: NewLambda
handler: function.handler
package: lambdas/NewLambda
alias: dev
# role: 'arn:aws:iam::000000000000:role/base_lambda_role' # Use an existing role instead of auto-created one
environment:
foo: bar
greengrassConfig:
MemorySize: 128000 # Kb, ask AWS why
Timeout: 10 # Sec
Pinned: True # Set True for long-lived functions
# the rest of AWS IoT function definition goes here
- name: my_existing_lambda # refer already created Lambda by a name
alias: dev
environment:
foo: bar
greengrassConfig:
MemorySize: 128000 # Kb, ask AWS why
Timeout: 10 # Sec
Pinned: True # Set True for long-lived functions
# the rest of AWS IoT function definition goes here
I am leaning towards option 2. Appreciate your input.
PS. I am just back on refactoring greengo
to v2 and want to incorporate ^ ^ into it.
PPS. Help appreciated :)
from greengo.
Hi Dimitri
right in the thick of it with deployment of hardware at the moment.
So are you going with option 2 ?
My coding level isn't probably on par with yours but am happy to make some pull requests.
Cheers
from greengo.
Note that this is not added by @QuinnCiccoretti and available in v1; will also be available in v2 when eventually merged.
from greengo.
Related Issues (7)
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 greengo.