This file contains 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 sys | |
import yaml | |
# sample usage: | |
# user@shell$ python3 yams_test.py file1.yaml file2.yaml file3.yaml | |
print(sys.argv) | |
for fname in sys.argv[1:]: | |
fin = open(fname, 'r') |
This file contains 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
Policies: | |
- AWSXrayWriteOnlyAccess | |
- Version: 2012-10-17 | |
Statement: | |
- Effect: Allow | |
Resource: '*' | |
Action: | |
- rekognition:SearchFacesByImage | |
- Version: 2012-10-17 | |
Statement: |
This file contains 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
Policies: | |
- AWSXrayWriteOnlyAccess | |
- AmazonRekognitionFullAccess | |
- Version: 2012-10-17 | |
Statement: | |
- Effect: Allow | |
Resource: arn:aws:s3:::* | |
Action: | |
- s3:GetObject |
This file contains 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
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 |
This file contains 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
AWSTemplateFormatVersion: 2010-09-09 | |
Transform: AWS::Serverless-2016-10-31 | |
Resources: | |
Api: | |
Type: AWS::Serverless::Api | |
Properties: | |
Name: !Sub | |
- ${ResourceName} From Stack ${StackTagName} Environment ${EnvironmentTagName} | |
- ResourceName: Api | |
StageName: !Ref EnvironmentAPIGatewayStageName |
This file contains 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
Policies: | |
- AWSXrayWriteOnlyAccess | |
- Version: 2012-10-17 | |
Statement: | |
- Effect: Allow | |
Resource: !Join [ '', [ !GetAtt FileStore.Arn, /* ] ] | |
Action: | |
- s3:PutObject | |
- s3:PutObjectAcl |
This file contains 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
GetFile: | |
Type: AWS::Serverless::Function | |
Properties: | |
FunctionName: !Sub ${AWS::StackName}-GetFile | |
Description: !Sub | |
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName} | |
- ResourceName: GetFile | |
CodeUri: src/GetFile | |
Handler: index.handler | |
Runtime: nodejs8.10 |