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: src/content/docs/aws/services/fis.md
+35-31Lines changed: 35 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
-
title: "Fault Injection Service (FIS)"
3
-
linkTitle: "Fault Injection Service (FIS)"
4
-
description: >
5
-
Get started with Fault Injection Service (FIS) on LocalStack
2
+
title: Fault Injection Service (FIS)
3
+
description: Get started with Fault Injection Service (FIS) on LocalStack
6
4
tags: ["Ultimate"]
7
5
---
8
6
@@ -13,11 +11,11 @@ FIS simulates faults such as resource unavailability and service errors to asses
13
11
The full list of such possible fault injections is available in the [AWS docs](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html).
14
12
15
13
LocalStack allows you to use the FIS APIs in your local environment to introduce faults in other services, in order to check how your setup behaves when parts of it stop working locally.
16
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_fis" >}}), which provides information on the extent of FIS API's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of FIS API's integration with LocalStack.
17
15
18
-
{{< callout "tip" >}}
19
-
LocalStack also features its own powerful chaos engineering tool, [Chaos API]({{< ref "chaos-api" >}}).
20
-
{{< /callout >}}
16
+
:::note
17
+
LocalStack also features its own powerful chaos engineering tool, [Chaos API](/aws/capabilities/chaos-engineering/chaos-api).
18
+
:::
21
19
22
20
## Concepts
23
21
@@ -30,10 +28,10 @@ FIS defines the following elements:
30
28
Together this is termed as an Experiment.
31
29
After the designated time, running experiments restore systems to their original state and cease introducing faults.
32
30
33
-
{{< callout "note" >}}
31
+
:::note
34
32
FIS experiment emulation is part of LocalStack Enterprise.
35
33
If you'd like to try it out, please [contact us](https://www.localstack.cloud/demo).
36
-
{{< /callout >}}
34
+
:::
37
35
38
36
FIS actions can be categorized into two main types:
39
37
@@ -89,9 +87,9 @@ Nonetheless, they are obligatory fields according to AWS specifications and must
89
87
90
88
Run the following command to create an FIS experiment template using the configuration file we just created:
@@ -132,24 +130,27 @@ The following output would be retrieved:
132
130
133
131
You can list all the templates you have created using the [`ListExperimentTemplates`](https://docs.aws.amazon.com/fis/latest/APIReference/API_ListExperimentTemplates.html):
134
132
135
-
{{< command >}}
136
-
$ awslocal fis list-experiment-templates
137
-
{{< /command >}}
133
+
```bash
134
+
awslocal fis list-experiment-templates
135
+
```
138
136
139
137
### Starting the experiment
140
138
141
139
Now let us start an EC2 instance that will match the criteria we specified in the experiment template.
@@ -194,25 +195,28 @@ The following output would be retrieved:
194
195
You can use the [`ListExperiments`](https://docs.aws.amazon.com/fis/latest/APIReference/API_ListExperiments.html) to check the status of your experiment.
195
196
Run the following command:
196
197
197
-
{{< command >}}
198
-
$ awslocal fis list-experiments
199
-
{{< /command >}}
198
+
```bash
199
+
awslocal fis list-experiments
200
+
```
200
201
201
202
You can fetch the details of your experiment using the [`GetExperiment`](https://docs.aws.amazon.com/fis/latest/APIReference/API_GetExperiment.html) API.
202
203
Run the following command and specify the ID of the experiment you created earlier:
You can now test that the experiment is working as expected by trying to obtain the state of the EC2 instance using [`DescribeInstanceStatus`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceStatus.html).
0 commit comments