workflows/templates/v3/template.yaml [31:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Globals:
  Function:
    Timeout: 5
    Runtime: nodejs12.x
    Tags:
      Application: HappyPath

Resources:
  #Lambda functions
  ResizerFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/resizer/
      Handler: app.handler
      MemorySize: 2056
      Layers:
        - !Ref SharpLayerARN
      Environment:
        Variables:
          OutputBucket: !Ref S3DistributionBucketName
          TableName: !Ref ApplicationTableName              
      Policies:
        - S3ReadPolicy:
            BucketName: !Ref S3UploadBucketName
        - S3CrudPolicy:
            BucketName: !Ref S3DistributionBucketName
        - DynamoDBWritePolicy:
            TableName: !Ref ApplicationTableName              

  PublishFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/publish/
      Handler: app.handler
      MemorySize: 128
      Layers:
        - !Ref SharpLayerARN
      Environment:
        Variables:
          TableName: !Ref ApplicationTableName              
      Policies:
        - DynamoDBWritePolicy:
            TableName: !Ref ApplicationTableName       

  ModeratorFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/analyze/moderator
      Handler: app.handler
      MemorySize: 128
      Timeout: 10  
      Policies:
        - S3ReadPolicy:
            BucketName: !Ref S3UploadBucketName
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



workflows/templates/v4/template.yaml [31:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Globals:
  Function:
    Timeout: 5
    Runtime: nodejs12.x
    Tags:
      Application: HappyPath

Resources:
  #Lambda functions
  ResizerFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/resizer/
      Handler: app.handler
      MemorySize: 2056
      Layers:
        - !Ref SharpLayerARN
      Environment:
        Variables:
          OutputBucket: !Ref S3DistributionBucketName
          TableName: !Ref ApplicationTableName              
      Policies:
        - S3ReadPolicy:
            BucketName: !Ref S3UploadBucketName
        - S3CrudPolicy:
            BucketName: !Ref S3DistributionBucketName
        - DynamoDBWritePolicy:
            TableName: !Ref ApplicationTableName              

  PublishFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/publish/
      Handler: app.handler
      MemorySize: 128
      Layers:
        - !Ref SharpLayerARN
      Environment:
        Variables:
          TableName: !Ref ApplicationTableName              
      Policies:
        - DynamoDBWritePolicy:
            TableName: !Ref ApplicationTableName       

  ModeratorFunction:
    Type: AWS::Serverless::Function 
    Properties:
      CodeUri: ../../functions/analyze/moderator
      Handler: app.handler
      MemorySize: 128
      Timeout: 10  
      Policies:
        - S3ReadPolicy:
            BucketName: !Ref S3UploadBucketName
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



