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