service: fastapi-lambda provider: name: aws runtime: python3.10 region: eu-west-2 environment: API_KEY: ${env:API_KEY} ENVIRONMENT: ${env:ENVIRONMENT} SECRET_KEY: ${env:SECRET_KEY} ALGORITHM: ${env:ALGORITHM} PLAN_TRIGGER_BUCKET: ${env:PLAN_TRIGGER_BUCKET} package: individually: true include: - Model/backend/** plugins: - serverless-python-requirements custom: pythonRequirements: dockerizePip: true dockerFile: docker/Dockerfile useDocker: true dockerSsh: true fileName: requirements/base.txt functions: app: handler: app.main.handler events: - http: path: /{proxy+} method: ANY # vpc: # securityGroupIds: # - sg-0abcd1234efgh5678 # subnetIds: # - subnet-a1b2c3d4 # - subnet-e5f6g7h8