Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- service: apis-service
- package:
- individually: true
- provider:
- name: aws
- runtime: python3.6
- stage: ${opt:stage}
- region: ap-south-1
- memorySize: 1024
- timeout: 30
- apiGateway:
- restApiId: ${env:restid_${opt:stage}}
- restApiRootResourceId: ${env:rootid_v3_${opt:stage}}
- deploymentBucket:
- name: api-deployment-bucket
- serverSideEncryption: AES256
- plugins:
- - serverless-package-python-functions
- - serverless-delete-loggroups
- custom:
- pkgPyFuncs: # plugin configuration
- buildDir: _build
- requirementsFile: "requirements.txt"
- globalRequirements:
- - ../common_files/abc/requirements.txt
- globalIncludes:
- - ../common_files
- cleanup: true
- corsOrigin: ${env:domain}
- functions:
- ping_api:
- name: ping_serveless_${opt:stage}
- handler: lambda_function.lambda_handler
- package:
- include:
- - project_files/ping
- artifact: ${self:custom.pkgPyFuncs.buildDir}/ping_serveless_${opt:stage}.zip
- events:
- - http:
- path: /ping
- method: get
Add Comment
Please, Sign In to add comment