Skip to content

Instantly share code, notes, and snippets.

@deeheber
Created May 10, 2019 21:43
Show Gist options
  • Save deeheber/d4ce134a8955d2aedcf017512430aeea to your computer and use it in GitHub Desktop.
Save deeheber/d4ce134a8955d2aedcf017512430aeea to your computer and use it in GitHub Desktop.
Convert To Audio YAML
ConvertToAudio:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-ConvertToAudio
Description: !Sub
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName}
- ResourceName: ConvertToAudio
CodeUri: src/ConvertToAudio
Handler: index.handler
Runtime: nodejs8.10
MemorySize: 3008
Timeout: 300
Tracing: Active
Policies:
- AWSXrayWriteOnlyAccess
- Version: 2012-10-17
Statement:
- Effect: Allow
Resource: !Join [ '', [ !GetAtt FileStore.Arn, /* ] ]
Action:
- s3:PutObject
- s3:PutObjectAcl
- Version: 2012-10-17
Statement:
- Effect: Allow
Resource: !GetAtt Table.Arn
Action:
- dynamodb:UpdateItem
- Version: 2012-10-17
Statement:
- Effect: Allow
Resource: '*'
Action:
- polly:SynthesizeSpeech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment