-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
64 lines (56 loc) · 1.54 KB
/
serverless.yml
File metadata and controls
64 lines (56 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
62
63
64
# Read the documentation at https://bref.sh/docs/symfony/getting-started
service: publisher
# Set your team ID if you are using Bref Cloud
bref:
team: demo-midi-formation
provider:
name: aws
region: us-east-1
environment:
APP_ENV: prod
APP_DEBUG: '0'
SQS_QUEUE_URL:
Ref: DemoMidiFormationQueue
iam:
role:
statements:
- Effect: Allow
Action:
- sqs:SendMessage
Resource:
Fn::GetAtt:
- DemoMidiFormationQueue
- Arn
plugins:
- ./vendor/bref/bref
functions:
web:
handler: public/index.php
runtime: php-84-fpm
timeout: 28
events:
- httpApi: '*'
package:
patterns:
# Excluded files and folders for deployment
- '!assets/**'
- '!node_modules/**'
- '!public/build/**'
- '!tests/**'
- '!var/**'
# If you want to include files and folders that are part of excluded folders,
# add them at the end
- 'var/cache/prod/**'
- 'public/build/entrypoints.json'
- 'public/build/manifest.json'
resources:
Resources:
DemoMidiFormationQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: demo-midi-formation-queue
Outputs:
DemoMidiFormationQueueUrl:
Description: "URL of the SQS queue"
Value:
Ref: DemoMidiFormationQueue