java-app-backend/template.yaml [247:271]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Layers:
        - !Sub arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2
      Environment:
        Variables:
          CollectionName: !Join ["-", ["collection", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
          TableName: !Join ["-", ["face", "id", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
          LAMBDA_INSIGHTS_LOG_LEVEL: info
      Policies:
        - CloudWatchLambdaInsightsExecutionRolePolicy
        - RekognitionReadPolicy:
            CollectionId: !Join ["-", ["collection", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
        - DynamoDBReadPolicy:
            TableName: !Join ["-", ["face", "id", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
      Events:
        HttpPost:
          Type: Api
          Properties:
            Path: '/recognise'
            Method: post


Outputs:
  BucketName:
    Value: !Ref UploadBucket
    Description: Name of the S3 bucket
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



python-app-backend/template.yaml [238:262]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Layers:
        - !Sub arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:2
      Environment:
        Variables:
          CollectionName: !Join ["-", ["collection", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
          TableName: !Join ["-", ["face", "id", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
          LAMBDA_INSIGHTS_LOG_LEVEL: info
      Policies:
        - CloudWatchLambdaInsightsExecutionRolePolicy
        - RekognitionReadPolicy:
            CollectionId: !Join ["-", ["collection", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
        - DynamoDBReadPolicy:
            TableName: !Join ["-", ["face", "id", !Select [0, !Split [-, !Select [2, !Split [/, !Ref AWS::StackId ]]]]]]
      Events:
        HttpPost:
          Type: Api
          Properties:
            Path: '/recognise'
            Method: post


Outputs:
  BucketName:
    Value: !Ref UploadBucket
    Description: Name of the S3 bucket
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



