Mitch Garnaat

Merge pull request #7 from ryansb/develop

Context.exec_role_arn was returning the invoke role
......@@ -55,8 +55,8 @@ def main(config=None, debug=False, command=None):
ctx.delete()
click.echo('...done')
elif command == 'add-event-source':
click.echo('Adding event source ...')
ctx.add_event_source()
click.echo('Adding event sources ...')
ctx.add_event_sources()
click.echo('...done')
......
......@@ -57,7 +57,7 @@ class Context(object):
@property
def exec_role_arn(self):
return self._stack.invoke_role_arn
return self._stack.exec_role_arn
@property
def invoke_role_arn(self):
......
......@@ -89,7 +89,7 @@ class S3EventSource(EventSource):
'CloudFunctionConfiguration': {
'Id': self._make_notification_id(function.name),
'Events': [e for e in self._config['events']],
'CloudFunction': function.arn(),
'CloudFunction': function.arn,
'InvocationRole': self._context.invoke_role_arn}}
try:
response = self._s3.put_bucket_notification(
......