-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
49 lines (42 loc) · 1.04 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# reference: https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml/
service: py-lambda-circleci
useDotenv: true
frameworkVersion: '3'
provider:
name: aws
runtime: python3.8
stage: dev
region: ${env:AWS_DEFAULT_REGION}
timeout: 45
logRetentionInDays: 90
deploymentBucket:
name: ${self:service}-${self:provider.stage}-serverlessdeploymentbucket
package:
patterns:
- '!.github/**'
- '!.circleci/**'
- '!requirements.txt'
- '!README.md'
- '!circleci-aws-iam.json'
- '!LICENSE'
functions:
circle:
handler: src.handler.lambda_handler
description: AWS Lambda function to test CircleCI
maximumRetryAttempts: 0
events:
- schedule:
description: Calls AWS Lambda function every hour
rate: cron(0 */1 * * ? *)
plugins:
- serverless-layers
- serverless-deployment-bucket
custom:
serverless-layers:
dependenciesPath: ./requirements.txt
compatibleRuntimes:
- python3.8
deploymentBucket:
versioning: true
accelerate: true
blockPublicAccess: true