service: tao-get-delivery

frameworkVersion: '3'

plugins:
  - serverless-deployment-bucket

provider:
  name: aws
  runtime: nodejs14.x
  region: af-south-1
  stage: prod
  deploymentBucket:
    name: tcf-prod-serverless-deployment
    serverSideEncryption: AES256 
  iam:
    role: arn:aws:iam::409399318280:role/tcf_prod_lambda  # must validly reference a role defined in your account
  vpc:
    securityGroupIds:
      - sg-062c577334e5c8fdc
      - sg-0d10dc227eb6807b7
    subnetIds:
      - subnet-0c1d10dfe49625260
      - subnet-0b80f3577fb9865b3

custom:
  deploymentBucket:
    versioning: true
    blockPublicAccess: true

functions:
  handler:
    handler: index.handler
    name: tao-get-delivery
    description: tao-get-delivery
    memorySize: 512 # optional, in MB, default is 1024
    timeout: 900 # optional, in seconds, default is 6   