-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathsidecar.php
More file actions
102 lines (85 loc) · 3.13 KB
/
sidecar.php
File metadata and controls
102 lines (85 loc) · 3.13 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
use Hammerstone\Sidecar\Architecture;
return [
/*
* All of your function classes that you'd like to deploy go here.
*/
'functions' => [
// \App\Sidecar\RenderOgImage::class,
// \App\Sidecar\ProcessThumbnail::class,
],
/*
* The name of the application. This value will be used to name the functions
* when deploying. It defaults to the Laravel application's name.
*/
'app_name' => env('SIDECAR_APP_NAME', env('APP_NAME')),
/*
* Sidecar separates functions by environment. If you'd like to change
* your Sidecar environment without changing your entire application
* environment, you may do so here.
*/
'env' => env('SIDECAR_ENV', env('APP_ENV')),
/*
* The default timeout for your functions, in seconds.
* This can be overridden per function.
*/
'timeout' => env('SIDECAR_TIMEOUT', 300),
/*
* The default memory for your functions, in megabytes.
* This can be overridden per function.
*/
'memory' => env('SIDECAR_MEMORY', 512),
/*
* The default ephemeral storage for your functions, in megabytes.
* This can be overridden per function.
*/
'storage' => env('SIDECAR_STORAGE', 512),
/*
* The default architecture your function runs on.
* Available options are: x86_64, arm64
*/
'architecture' => env('SIDECAR_ARCH', Architecture::X86_64->value),
/*
* The base path for your package files. If you e.g. keep
* all your Lambda package files in your resource path,
* you may change the base path here.
*/
'package_base_path' => env('SIDECAR_PACKAGE_BASE_PATH', base_path()),
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* You are welcome to edit this configuration directly, or you can run *
* `php artisan sidecar:configure` for an interactive walk-through. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Your AWS key. See CreateDeploymentUser::policy for the IAM policy.
*
* Unfortunately you cannot rely on the keys available in the Vapor
* runtime, as those do not have the right permissions.
*/
'aws_key' => env('SIDECAR_ACCESS_KEY_ID'),
/*
* Your AWS secret key.
*/
'aws_secret' => env('SIDECAR_SECRET_ACCESS_KEY'),
/*
* The region where your Lambdas will be deployed.
*/
'aws_region' => env('SIDECAR_REGION'),
/*
* The bucket that temporarily holds your function's ZIP files
* while they are deployed to Lambda. It must be in the same
* region as your functions.
*/
'aws_bucket' => env('SIDECAR_ARTIFACT_BUCKET_NAME'),
/*
* This is the execution role that your Lambdas will use.
*
* See CreateExecutionRole::policy for the IAM policy.
*/
'execution_role' => env('SIDECAR_EXECUTION_ROLE'),
/**
* Customize your Lambdas prefix
*/
'lambda_prefix' => env('SIDECAR_LAMBDA_PREFIX', 'SC'),
];