AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An AWS Serverless Specification template describing your function.
Resources:
  theearresourcesproductiontranscode:
    Type: 'AWS::Serverless::Function'
    Properties:
      CodeUri: .
      Description: ''
      MemorySize: 512
      Timeout: 60
      Handler: transcode.main
      Runtime: nodejs12.x
      Architectures:
        - x86_64
      EventInvokeConfig:
        MaximumEventAgeInSeconds: 21600
        MaximumRetryAttempts: 2
      EphemeralStorage:
        Size: 512
      Events:
        BucketEvent1:
          Type: S3
          Properties:
            Bucket:
              Ref: Bucket1
            Events:
              - 's3:ObjectCreated:*'
      Environment:
        Variables:
          databaseHost: the-ear-prod-db-a.cluster-coaufliysybm.af-south-1.rds.amazonaws.com
          databaseName: the_ear_prod_db_a
          DBHOST: the-ear-prod-db-a.cluster-coaufliysybm.af-south-1.rds.amazonaws.com
          databaseUser: admin
          DBNAME: the_ear_prod_db_a
          databasePass: EqmvM1bL0FYJyX
          DBUSERNAME: admin
          SUBNETIDS1: subnet-073bdac49e88c7daa
          SUBNETIDS2: subnet-0c90a693b84fa59b9
          DBPASSWORD: EqmvM1bL0FYJyX
          SECURITYGROUPIDS: sg-04a9c8db07f607e2d
          tableName: loging
      Role: >-
        arn:aws:iam::055752874982:role/theear-resources-production-af-south-1-lambdaRole
      RuntimeManagementConfig:
        UpdateRuntimeOn: Auto
      SnapStart:
        ApplyOn: None
      PackageType: Zip
      Tags:
        STAGE: production
      VpcConfig:
        SecurityGroupIds:
          - sg-04a9c8db07f607e2d
        SubnetIds:
          - subnet-0c90a693b84fa59b9
          - subnet-073bdac49e88c7daa
  Bucket1:
    Type: 'AWS::S3::Bucket'
