Skip to content

Instantly share code, notes, and snippets.

@ambroff
Created October 21, 2014 03:42
Show Gist options
  • Save ambroff/8a3ce461db5a8775af07 to your computer and use it in GitHub Desktop.
Save ambroff/8a3ce461db5a8775af07 to your computer and use it in GitHub Desktop.
kinesis from appengine
application: your-app-id
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.application
libraries:
- name: ssl
version: "latest"
import webapp2
import boto
class MainPage(webapp2.RequestHandler):
def get(self):
kinesis = boto.connect_kinesis('<<redacted>>', '<<redacted>>', validate_certs=False)
kinesis.put_record('eventing-dev', 'butts', '1')
self.response.headers['Content-Type'] = 'text/plain'
self.response.write('Hello, World!')
application = webapp2.WSGIApplication([
('/', MainPage),
], debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment