Comments (3)
I'm interested in this feature too and may take a crack at it on my fork. I'll post an update here if I have something working if others want to help test it.
from kappa.
Got something working today. Does kappa own the event sources specified in the file? If so it seems odd to specify the arn in the yml file up front. I deviated slightly from the existing pattern in Context._create_event_sources()
and introduced a notion of type
- here's the example yaml:
---
name: kappa-cron
environments:
dev:
profile: xyz
region: us-west-2
event_sources:
- type: cloudwatch
name: hello-cron-dev
schedule: rate(1 minute)
description: cron to run this lambda function every minute
enabled: true
lambda:
description: Kappa sample lambda that runs every minute
handler: simple.handler
runtime: python2.7
memory_size: 128
timeout: 3
The add()
method does three things:
events.put_rule
lambda.add_permission
events.put_targets
The assumption is that the rule is owned by kappa and can be removed if/when the lambda function is removed.
Any comments on the above? I could revert to the arn convention, but keeping things like the account id out of the yaml file seems good if we can avoid it.
The alternative would look like this (I removed some irrelevant sections for comparison):
---
name: kappa-cron
environments:
dev:
event_sources:
- arn: arn:aws:events:us-west-2:1234567890:rule/hello-cron-dev
schedule: rate(1 minute)
description: cron to run this lambda function every minute
enabled: true
from kappa.
Ok - PR has been filed:
from kappa.
Related Issues (20)
- UnboundLocalError: local variable 'version' referenced before assignment HOT 2
- kappa deletes the manually created env vars HOT 2
- s3transfer not excluded in zip file, causing compatibility issues HOT 1
- Support Remote Environment Variables
- MalformedPolicyDocumentException: An error occurred when calling the CreatePolicy operation: Actions/Condition can contain only one colon. HOT 2
- Why do region and profile need to be defined? Why can't it find and use default region and profile? HOT 2
- Unable to update alias HOT 10
- DescribeSecurityGroups not useable HOT 1
- Working example using Java
- Please release a new Kappa version HOT 1
- Kinesis Event Source add function not working as expected HOT 1
- nodejs function deployment hangs HOT 1
- Installation fails on python 3.5 amazon-linux docker HOT 2
- Cannot have multiple S3 event sources on same bucket for same Lambda Function. HOT 1
- Update code without configuration update
- UnicodeDecodeError when installed as dependency of Zappa HOT 3
- Cannot use different VPC config for different environments
- hi, is any maintainer active? HOT 1
- Issue with setup.py
- SyntaxWarning over comparison of literals using is
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 kappa.