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
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Simulating outages for local cloud apps with LocalStack!
1
+
# Simulating outages for local cloud apps with LocalStack's Chaos API
2
2
3
-
LocalStack's [Outages extension](https://pypi.org/project/localstack-extension-outages/) enables you to start a local outage, right on your developer machine. In this demo, we set up an HTTP CRUD API functioning as a Product Management System, and use the Outages extension to simulate an outage in the DynamoDB table. We'll further use `pytest` to test the application's behavior during the outage. For a more detailed walkthrough, check out our [Simulating Outages for Local Cloud Apps with LocalStack]() blog.
3
+
LocalStack's [Chaos API](https://docs.localstack.cloud/user-guide/chaos-engineering/chaos-api/) enables you to simulate a local outage, right on your developer machine. In this demo, we set up an HTTP CRUD API functioning as a Product Management System, and use the Chaos API to simulate an outage in the DynamoDB table. We'll further use `pytest` to test the application's behavior during the outage.
4
4
5
5
## Architecture
6
6
@@ -41,9 +41,8 @@ docker-compose up
41
41
42
42
The Docker Compose configuration will:
43
43
44
-
* Install the Outages extension.
45
-
* Create your cloud infrastructure.
46
44
* Start the LocalStack container.
45
+
* Create your cloud infrastructure.
47
46
48
47
### Test the infrastructure
49
48
@@ -73,7 +72,7 @@ You can navigate to the [DynamoDB Resource Browser](https://app.localstack.cloud
73
72
You can simulate an outage in your local DynamoDB table by running the following command:
74
73
75
74
```bash
76
-
curl --location --request POST 'http://outages.localhost.localstack.cloud:4566/outages' \
75
+
curl --location --request POST 'http://localhost.localstack.cloud:4566/_localstack/chaos/faults' \
77
76
--header 'Content-Type: application/json' \
78
77
--data '
79
78
[
@@ -114,7 +113,7 @@ A DynamoDB error occurred. Message sent to queue.
114
113
To stop the outage, run the following command:
115
114
116
115
```bash
117
-
curl --location --request POST 'http://outages.localhost.localstack.cloud:4566/outages' \
116
+
curl --location --request POST 'http://localhost.localstack.cloud:4566/_localstack/chaos/faults' \
0 commit comments