|
1 | 1 | # Component: `datadog-synthetics` |
2 | 2 |
|
3 | | -This component provides the ability to implement [Datadog synthetic tests](https://docs.datadoghq.com/synthetics/guide/). |
| 3 | +This component provides the ability to implement |
| 4 | +[Datadog synthetic tests](https://docs.datadoghq.com/synthetics/guide/). |
4 | 5 |
|
5 | | -Synthetic tests allow you to observe how your systems and applications are performing using simulated requests and actions |
6 | | -from the AWS managed locations around the globe, and to monitor internal endpoints |
7 | | -from [Private Locations](https://docs.datadoghq.com/synthetics/private_locations). |
| 6 | +Synthetic tests allow you to observe how your systems and applications are performing using simulated requests and |
| 7 | +actions from the AWS managed locations around the globe, and to monitor internal endpoints from |
| 8 | +[Private Locations](https://docs.datadoghq.com/synthetics/private_locations). |
8 | 9 |
|
9 | 10 | ## Usage |
10 | 11 |
|
@@ -39,13 +40,14 @@ components: |
39 | 40 |
|
40 | 41 | Below are examples of Datadog browser and API synthetic tests. |
41 | 42 |
|
42 | | -The synthetic tests are defined in YAML using either the [Datadog Terraform provider](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/synthetics_test) schema |
43 | | -or the [Datadog Synthetics API](https://docs.datadoghq.com/api/latest/synthetics) schema. |
44 | | -See the `terraform-datadog-platform` Terraform module [README](https://github.com/cloudposse/terraform-datadog-platform/blob/main/modules/synthetics/README.md) for more details. |
45 | | -We recommend using the API schema so you can more create and edit tests using the Datadog |
46 | | -web API and then import them into this module by downloading the test using |
47 | | -the Datadog REST API. (See the Datadog API documentation for the appropriate |
48 | | -`curl` commands to use.) |
| 43 | +The synthetic tests are defined in YAML using either the |
| 44 | +[Datadog Terraform provider](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/synthetics_test) |
| 45 | +schema or the [Datadog Synthetics API](https://docs.datadoghq.com/api/latest/synthetics) schema. See the |
| 46 | +`terraform-datadog-platform` Terraform module |
| 47 | +[README](https://github.com/cloudposse/terraform-datadog-platform/blob/main/modules/synthetics/README.md) for more |
| 48 | +details. We recommend using the API schema so you can more create and edit tests using the Datadog web API and then |
| 49 | +import them into this module by downloading the test using the Datadog REST API. (See the Datadog API documentation for |
| 50 | +the appropriate `curl` commands to use.) |
49 | 51 |
|
50 | 52 | ```yaml |
51 | 53 | # API schema |
@@ -124,24 +126,31 @@ my-api-test: |
124 | 126 | jsonpath: foo.bar |
125 | 127 | ``` |
126 | 128 |
|
127 | | -These configuration examples are defined in the YAML files in the [catalog/synthetics/examples](https://github.com/cloudposse/terraform-aws-components/tree/main/modules/datadog-synthetics/catalog/synthetics/examples) folder. |
| 129 | +These configuration examples are defined in the YAML files in the |
| 130 | +[catalog/synthetics/examples](https://github.com/cloudposse/terraform-aws-components/tree/main/modules/datadog-synthetics/catalog/synthetics/examples) |
| 131 | +folder. |
128 | 132 |
|
129 | | -You can use different subfolders for your use-case. |
130 | | -For example, you can have `dev` and `prod` subfolders to define different synthetic tests for the `dev` and `prod` environments. |
| 133 | +You can use different subfolders for your use-case. For example, you can have `dev` and `prod` subfolders to define |
| 134 | +different synthetic tests for the `dev` and `prod` environments. |
131 | 135 |
|
132 | 136 | Then use the `synthetic_paths` variable to point the component to the synthetic test configuration files. |
133 | 137 |
|
134 | 138 | The configuration files are processed and transformed in the following order: |
135 | 139 |
|
136 | | -- The `datadog-synthetics` component loads the YAML configuration files from the filesystem paths specified by the `synthetics_paths` variable |
| 140 | +- The `datadog-synthetics` component loads the YAML configuration files from the filesystem paths specified by the |
| 141 | + `synthetics_paths` variable |
137 | 142 |
|
138 | | -- Then, in the [synthetics](https://github.com/cloudposse/terraform-datadog-platform/blob/master/modules/synthetics/main.tf) module, |
139 | | - the YAML configuration files are merged and transformed from YAML into |
140 | | - the [Datadog Terraform provider](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/synthetics_test) schema |
| 143 | +- Then, in the |
| 144 | + [synthetics](https://github.com/cloudposse/terraform-datadog-platform/blob/master/modules/synthetics/main.tf) module, |
| 145 | + the YAML configuration files are merged and transformed from YAML into the |
| 146 | + [Datadog Terraform provider](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/synthetics_test) |
| 147 | + schema |
141 | 148 |
|
142 | 149 | - And finally, the Datadog Terraform provider uses the |
143 | | - [Datadog Synthetics API](https://docs.datadoghq.com/api/latest/synthetics) specifications to call the Datadog API and provision the synthetic tests |
| 150 | + [Datadog Synthetics API](https://docs.datadoghq.com/api/latest/synthetics) specifications to call the Datadog API and |
| 151 | + provision the synthetic tests |
144 | 152 |
|
| 153 | +<!-- prettier-ignore-start --> |
145 | 154 | <!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
146 | 155 | ## Requirements |
147 | 156 |
|
@@ -214,6 +223,7 @@ No resources. |
214 | 223 | | <a name="output_datadog_synthetics_test_monitor_ids"></a> [datadog\_synthetics\_test\_monitor\_ids](#output\_datadog\_synthetics\_test\_monitor\_ids) | IDs of the monitors associated with the Datadog synthetics tests | |
215 | 224 | | <a name="output_datadog_synthetics_test_names"></a> [datadog\_synthetics\_test\_names](#output\_datadog\_synthetics\_test\_names) | Names of the created Datadog synthetic tests | |
216 | 225 | <!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 226 | +<!-- prettier-ignore-end --> |
217 | 227 |
|
218 | 228 | ## References |
219 | 229 |
|
|
0 commit comments