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} DOMAIN_NAME: ${env:DOMAIN_NAME} package: individually: true include: - Model/backend/** plugins: - serverless-python-requirements - serverless-domain-manager custom: pythonRequirements: dockerizePip: true dockerFile: docker/Dockerfile useDocker: true dockerSsh: true fileName: requirements/base.txt customDomain: domainName: api-${self:provider.ENVIRONMENT}.${self:provider.environment.DOMAIN_NAME} stage: ${self:provider.stage} createRoute53Record: true certificateArn: ${ssm:/ssl_certificate_arn~true} functions: app: handler: app.main.handler events: - http: path: /{proxy+} method: ANY # vpc: # securityGroupIds: # - sg-0abcd1234efgh5678 # subnetIds: # - subnet-a1b2c3d4 # - subnet-e5f6g7h8