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
Head over to `chrome://extensions/` in Chrome, then select `"Load unpacked"` and point to the directory where the source code files are stored on the disk.
28
28
29
29
Once installed, a new icon should appear in the Chrome extensions bar.
30
30
When clicking on the icon, the plugin can be enabled/disabled by toggling the **Enable local mode** checkbox.
@@ -40,37 +39,31 @@ This app consists of various backend components (e.g., DynamoDB tables, Lambda f
40
39
41
40
We can deploy the backend components to LocalStack directly, using the `samlocal` command line interface (CLI):
42
41
43
-
{{< command >}}
44
-
$ samlocal build
45
-
$ samlocal deploy
46
-
{{< /command >}}
42
+
```bash
43
+
samlocal build
44
+
samlocal deploy
45
+
```
47
46
48
47
Once deployed, the `samlocal` CLI will print out a display app URL which will look similar to the following:
49
48
50
-
```sh
49
+
```bash
51
50
Key DisplayAppURI
52
51
Description The URL for the Display App
53
52
Value https://workshop-display.serverlesscoffee.com/?region=us-east-1&userPoolId=us-east-1_43c9800e64c84467aa0abdb102e226ef&userPoolWebClientId=vr9aw2jr7iv36ezwaaqlzzkvbp&poolId=us-east-1:95dc88d0-1029-48fe-ba7b-1e6a9741bfc5&host=localhost.localstack.cloud&orderManagerEndpoint=https://fapencq0ue.execute-api.amazonaws.com:4566/Prod&APIGWEndpointValidatorService=https://psmdc7b1lv.execute-api.amazonaws.com:4566/Prod&APIGWEndpointConfigService=https://hw7yw61ba7.execute-api.amazonaws.com:4566/Prod
54
53
```
55
54
56
55
We can then open the URL in the browser and confirm the configurations in the form dialog:
After clicking **Sign In** in this form, we can see that the browser makes a request to LocalStack (to `localhost.localstack.cloud`, which is a domain name that resolves to `127.0.0.1`).
This sample demonstrates how we can take an existing Web application, without any modification, and make it talk to the LocalStack APIs directly from the browser via the LocalSurf plugin.
0 commit comments