File tree 4 files changed +13
-7
lines changed
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ service: yolo-bouldering-route
4
4
5
5
provider :
6
6
name : aws
7
- runtime : nodejs14 .x
7
+ runtime : nodejs16 .x
8
8
stage : dev
9
9
region : ap-southeast-1
10
10
memorySize : 1024
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ resources:
20
20
Properties :
21
21
BucketName :
22
22
Fn::Sub : ' ${{self:service}}-${{self:custom.stage}}-${AWS::AccountId}'
23
+ PublicAccessBlockConfiguration :
24
+ BlockPublicPolicy : false
23
25
LifecycleConfiguration :
24
26
# Deletes the route picture after 90 days, maximum allowable age we permit in frontend
25
27
Rules :
Original file line number Diff line number Diff line change 7
7
8
8
npm ci
9
9
rm -f .env
10
- if [ $1 == " deploy" ]
10
+ sls () {
11
+ npx serverless " $@ "
12
+ }
13
+
14
+ if [[ $1 == " deploy" ]];
11
15
then
12
16
(
13
17
cd ./cognito_setup
35
39
sls deploy --stage $2
36
40
sls info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint:\ //g | { read -r var; cd ..; echo " VUE_APP_ROUTE_ENDPOINT_URL=$var " >> .env; }
37
41
)
38
- if [ ${3:- node} == " all" ]
42
+ if [[ ${3:- node} == " all" ]] ;
39
43
then
40
44
(
41
45
cd ./predict_microservice
42
46
sls deploy --stage $2
43
47
sls info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint:\ //g | { read -r var; cd ..; echo " VUE_APP_PREDICT_ENDPOINT_URL=$var " >> .env; }
44
48
)
45
49
fi
46
- elif [ $1 == " remove" ]
50
+ elif [[ $1 == " remove" ]] ;
47
51
then
48
52
(
49
53
cd ./route_microservice
69
73
cd ./cognito_setup
70
74
sls remove --stage $2
71
75
)
72
- if [ ${3:- node} == " all" ]
76
+ if [[ ${3:- node} == " all" ]] ;
73
77
then
74
78
(
75
79
cd ./predict_microservice
76
80
sls remove --stage $2
77
81
)
78
82
fi
79
83
fi
80
- echo " success"
84
+ echo " success"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ service: yolo-bouldering-user
4
4
5
5
provider :
6
6
name : aws
7
- runtime : nodejs14 .x
7
+ runtime : nodejs16 .x
8
8
stage : dev
9
9
region : ap-southeast-1
10
10
memorySize : 1024
You can’t perform that action at this time.
0 commit comments