Sha256: a79bbd4430cc2e117537919c99269faf0d6c86ec650b386138535ededb448461
Contents?: true
Size: 1.04 KB
Versions: 51
Compression:
Stored size: 1.04 KB
Contents
CloudFormation do DESCRIPTION ||= 'lambda description'.freeze Description DESCRIPTION Parameter('Role') { Type 'String' } Resource('LambdaFunction') do Type 'AWS::Lambda::Function' Property('Handler', 'index.handler') Property('Role', Ref('Role')) Property('Code', S3Bucket: 'lambda-functions', S3Key: 'amilookup.zip') Property('Runtime', 'nodejs') Property('Timeout', '25') end Resource('EventSourceMapping') do Type 'AWS::Lambda::EventSourceMapping' Property('EventSourceArn', FnJoin('', ['arn:aws:kinesis:', Ref('AWS::Region'), ':', Ref('AWS::AccountId'), ':stream/test'])) Property('FunctionName', FnGetAtt('LambdaFunction', 'Arn')) Property('StartingPosition', 'TRIM_HORIZON') end Resource('LambdaInvokePermission') do Type 'AWS::Lambda::Permission' Property('FunctionName', FnGetAtt('LambdaFunction', 'Arn')) Property('Action', ['lambda:InvokeFunction']) Property('Principal', 's3.amazonaws.com') Property('SourceAccount', Ref('AWS::AccountId')) end end
Version data entries
51 entries across 51 versions & 1 rubygems