Created
October 21, 2014 03:42
-
-
Save ambroff/8a3ce461db5a8775af07 to your computer and use it in GitHub Desktop.
kinesis from appengine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application: your-app-id | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: /.* | |
script: helloworld.application | |
libraries: | |
- name: ssl | |
version: "latest" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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