Skip to content

Instantly share code, notes, and snippets.

@adhorn
Last active May 24, 2018 08:16
Show Gist options
  • Select an option

  • Save adhorn/ad128de50371dacad7c4168b46e5df1e to your computer and use it in GitHub Desktop.

Select an option

Save adhorn/ad128de50371dacad7c4168b46e5df1e to your computer and use it in GitHub Desktop.
stream: arn:aws:dynamodb:us-east-1:xxxxxxxxxxx:table/global2/stream/2018-05-14T21:09:15.761
stream: arn:aws:dynamodb:us-west-2:xxxxxxxxxxx:table/global2/stream/2018-05-14T21:09:25.664
service: comp
provider:
name: aws
runtime: python2.7
memorySize: 512
iamRoleStatements:
- Effect: "Allow"
Action:
- "dynamodb:*"
Resource:
- "arn:aws:dynamodb:${opt:region}:xxxxxxxxx:table/global2"
- Effect: "Allow"
Action:
- "comprehend:DetectSentiment"
- "logs:CreateLogGroup"
- "logs:CreateLogStream"
- "logs:PutLogEvents"
- "xray:PutTraceSegments"
- "xray:PutTelemetryRecords"
Resource:
- "*"
package:
include:
- vendored/**
exclude:
- .git/**
functions:
streamFunction:
handler: stream_handler.handler
events:
- stream: ${file(env_${opt:region}.yml):stream}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment