File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- # was_tasks
1+ # aws_tasks
22
33## Infrastructure
44
@@ -29,12 +29,15 @@ $ poetry run pytest tests.py
2929
3030## Creating the DynamoDB and running the server locally
3131
32+ ``` bash
3233export AWS_ACCESS_KEY_ID=abc && export AWS_SECRET_ACCESS_KEY=abc && export AWS_DEFAULT_REGION=eu-west-1 && export TABLE_NAME=" local-tasks-api-table" && export DYNAMODB_URL=http://localhost:9999
3334poetry run python create_dynamodb_locally.py
3435poetry run uvicorn main:app --reload
36+ ```
3537
3638If you see following error, you only need to give your user the rights of the folder:
3739
40+ ```
3841dynamodb-local | Oct 07, 2024 8:25:37 PM com.almworks.sqlite4java.Internal log
3942dynamodb-local | WARNING: [sqlite] SQLiteQueue[shared-local-instance.db]: stopped abnormally, reincarnating in 3000ms
4043dynamodb-local | Oct 07, 2024 8:25:40 PM com.almworks.sqlite4java.Internal log
@@ -54,10 +57,12 @@ dynamodb-local | at java.base/java.lang.Thread.run(Thread.java:840)
5457dynamodb-local |
5558dynamodb-local | Oct 07, 2024 8:25:40 PM com.almworks.sqlite4java.Internal log
5659dynamodb-local | WARNING: [sqlite] SQLiteQueue[shared-local-instance.db]: stopped abnormally, reincarnating in 3000ms
60+ ```
5761
62+ Run the following command in your bash session:
5863
5964``` bash
6065sudo chown -R $user : docker
6166```
6267
63- Where ` $user ` is your Docker user.
68+ Where ` $user ` is your Docker user.
You can’t perform that action at this time.
0 commit comments