-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
51 lines (51 loc) · 1.2 KB
/
serverless.yml
File metadata and controls
51 lines (51 loc) · 1.2 KB
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
50
51
service: go-lambda-localstack-test
frameworkVersion: '2'
provider:
name: aws
runtime: provided.al2
endpointType: REGIONAL
region: us-east-1
lambdaHashingVersion: '20201221'
environment:
AWS_ENDPOINT: http://host.docker.internal:4566
S3_BUCKET: my-test-bucket
DYNAMODB_TABLE: fleet-telemetry
SQS_QUEUE_URL: http://localhost:4566/000000000000/minha-fila
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:PutItem
Resource: arn:aws:dynamodb:us-east-1:000000000000:table/fleet-telemetry
- Effect: Allow
Action:
- s3:PutObject
Resource: arn:aws:s3:::my-test-bucket/*
- Effect: Allow
Action:
- rekognition:CompareFaces
Resource: "*"
- Effect: Allow
Action:
- sqs:DeleteMessage
Resource: arn:aws:sqs:us-east-1:000000000000:minha-fila
plugins:
- serverless-localstack
custom:
localstack:
debug: true
edgePort: 4566
autostart: false
stages:
- local
lambda:
mountCode: true
functions:
minha-funcao:
handler: bootstrap
package:
include:
- bootstrap
timeout: 30
events:
- sqs:
arn: arn:aws:sqs:us-east-1:000000000000:minha-fila