File size: 734 Bytes
eb5ea89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
  GoogleLensFunction:
    Type: AWS::Serverless::Function
    Properties:
      FunctionName: !Sub 'google-lens-function-${AWS::Region}'
      Runtime: python3.8
      Handler: index.handler
      Code:
        S3Bucket: !Sub 'google-lens-bucket-${AWS::Region}'
        S3ObjectVersion: !Sub 'google-lens-object-version-${AWS::Region}'
      Environment:
        Variables:
          BUCKET_NAME: !Sub 'google-lens-bucket-${AWS::Region}'
          OBJECT_VERSION: !Sub 'google-lens-object-version-${AWS::Region}'
      Events:
        GoogleLensApi:
          Type: Api
          Properties:
            Path: /google-lens
            Method: get