You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-16Lines changed: 35 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,22 +69,41 @@ source .venv/bin/activate
69
69
pip install -r requirements-dev.txt
70
70
```
71
71
72
+
## Instructions
73
+
74
+
You can set up and deploy the sample application on LocalStack by executing the commands in our Makefile. First, create a `.env` file using the provided `.env.example` file as a template, and include your LocalStack token in it. Then, run `make start` to initiate LocalStack on your machine.
75
+
76
+
Next, execute `make install` to install needed dependencies.
77
+
78
+
After that, launch `make terraform-setup` to provision the infrastructure on LocalStack using Terraform CLI and its scripts. Alternatively, run `make awslocal-setup` to set up the infrastructure using `awslocal`, a wrapper for the AWS CLI.
79
+
80
+
If you prefer, you can also follow these step-by-step instructions for a manual deployment.
81
+
72
82
### LocalStack
73
83
74
-
Start LocalStack Pro with the appropriate CORS configuration for the S3 Website:
84
+
Start LocalStack Pro with Auth Token:
75
85
76
86
```bash
77
-
LOCALSTACK_AUTH_TOKEN=... localstack start
87
+
LOCALSTACK_AUTH_TOKEN=... localstack start (-d)
78
88
```
79
89
80
-
## Instructions
90
+
### Terraform
91
+
92
+
To create the infrastructure using Terraform, run the following commands:
93
+
94
+
```shell
95
+
cd deployment/terraform
96
+
tflocal init
97
+
tflocal apply --auto-approve
98
+
```
99
+
100
+
We are using the `tflocal` wrapper to configure the local service endpoints, and send the API requests to LocalStack, instead of AWS.
81
101
82
-
You can create the AWS infrastructure on LocalStack by running `bin/deploy.sh`.
83
-
Make sure you have Python 3.11 activated before running the script.
102
+
### AWS CLI
84
103
85
-
Here are instructions to deploy it manually step-by-step.
104
+
You can execute the following commands to set up the infrastructure using `awslocal`. All the commands are also available in the `deployment/awslocal/deploy.sh` script.
0 commit comments