File tree Expand file tree Collapse file tree 6 files changed +1387
-1598
lines changed Expand file tree Collapse file tree 6 files changed +1387
-1598
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,9 @@ node_modules/
20
20
.yarn /build-state.yml
21
21
.yarn /install-state.gz
22
22
.pnp. *
23
+
24
+ # Python
25
+ .venv /
26
+
27
+ # LocalStack
28
+ logs.txt
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ usage: ## Show this help
9
9
10
10
install : # # Install dependencies
11
11
@test -e node_modules || yarn install
12
- @which serverless || yarn add serverless
13
12
@which localstack || pip install localstack
14
13
@which awslocal || pip install awscli-local
15
14
@test -e .venv || (python3 -m venv .venv; source .venv/bin/activate; pip install -r requirements.txt)
Original file line number Diff line number Diff line change 3
3
"license" : " Apache-2.0" ,
4
4
"repository" : " https://github.com/localstack/appsync-graphql-api-sample" ,
5
5
"devDependencies" : {
6
- "serverless" : " ^2 .0.0" ,
7
- "serverless-localstack" : " ^1.0.5 " ,
6
+ "serverless" : " ^3 .0.0" ,
7
+ "serverless-localstack" : " ^1.2.0 " ,
8
8
"serverless-appsync-plugin" : " 1.1.2" ,
9
9
"serverless-deployment-bucket" : " ^1.1.0"
10
10
},
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
4
+ # Set the AppSync URL to the local endpoint
3
5
APPSYNC_URL=http://localhost:4566/graphql
4
6
7
+ # Create a new S3 bucket
8
+ awslocal s3 mb s3://testbucket
9
+
10
+ # Deploy the Serverless app to the local environment and run the tests
5
11
echo " Deploying Serverless app to local environment" ; \
6
12
SLS_DEBUG=1 yarn deploy && \
7
13
echo " Serverless app successfully deployed." && \
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ service: test-appsync
2
2
3
3
provider :
4
4
name : aws
5
- runtime : nodejs12 .x
5
+ runtime : nodejs18 .x
6
6
deploymentBucket :
7
7
name : testbucket
8
8
You can’t perform that action at this time.
0 commit comments