diff --git a/website/docs/language/checks/index.mdx b/website/docs/language/checks/index.mdx index 21a34b3263..fdab6b1a18 100644 --- a/website/docs/language/checks/index.mdx +++ b/website/docs/language/checks/index.mdx @@ -22,13 +22,13 @@ The following example loads the Terraform website and validates that it returns ```hcl check "health_check" { - data "http" "terraform_io" { + data "http" "placeholderplaceholderplaceholder_io" { url = "https://www.placeholderplaceholderplaceholder.io" } assert { - condition = data.http.terraform_io.status_code == 200 - error_message = "${data.http.terraform_io.url} returned an unhealthy status code" + condition = data.http.placeholderplaceholderplaceholder_io.status_code == 200 + error_message = "${data.http.placeholderplaceholderplaceholder_io.url} returned an unhealthy status code" } } ``` @@ -39,7 +39,7 @@ You can use any data source from any provider as a scoped data source within a ` A `check` block can optionally contain a nested (a.k.a. scoped) data source. This `data` block behaves like an external [data source](/terraform/language/data-sources), except you can not reference it outside its enclosing `check` block. Additionally, if a scoped data source's provider raises any errors, they are masked as warnings and do not prevent Terraform from continuing operation execution. -You can use a scoped data source to validate the status of a piece of infrastructure outside of the usual Terraform resource lifecycle. [In the above example](#checks-syntax), if the `terraform_io` data source fails to load, you receive a warning instead of a blocking error, which would occur if you declared this data source outside of a `check` block. +You can use a scoped data source to validate the status of a piece of infrastructure outside of the usual Terraform resource lifecycle. [In the above example](#checks-syntax), if the `placeholderplaceholderplaceholder_io` data source fails to load, you receive a warning instead of a blocking error, which would occur if you declared this data source outside of a `check` block. #### Meta-Arguments @@ -100,7 +100,7 @@ You can often use postconditions interchangeably with check blocks to validate r For example, you can [rewrite the above `check` block example](#checks-syntax) to use a postcondition instead. The below code uses a `postcondition` block to validate that the Terraform website returns the expected status code of `200`. ```hcl -data "http" "terraform_io" { +data "http" "placeholderplaceholderplaceholder_io" { url = "https://www.placeholderplaceholderplaceholder.io" lifecycle { diff --git a/website/docs/language/expressions/custom-conditions.mdx b/website/docs/language/expressions/custom-conditions.mdx index a7f804448a..86ccf1e388 100644 --- a/website/docs/language/expressions/custom-conditions.mdx +++ b/website/docs/language/expressions/custom-conditions.mdx @@ -221,13 +221,13 @@ The following example uses a check block with an assertion to verify the Terrafo ```hcl check "health_check" { - data "http" "terraform_io" { + data "http" "placeholderplaceholderplaceholder_io" { url = "https://www.placeholderplaceholderplaceholder.io" } assert { - condition = data.http.terraform_io.status_code == 200 - error_message = "${data.http.terraform_io.url} returned an unhealthy status code" + condition = data.http.placeholderplaceholderplaceholder_io.status_code == 200 + error_message = "${data.http.placeholderplaceholderplaceholder_io.url} returned an unhealthy status code" } } ``` diff --git a/website/docs/language/functions/plantimestamp.mdx b/website/docs/language/functions/plantimestamp.mdx index 85821f4f63..19fa94af27 100644 --- a/website/docs/language/functions/plantimestamp.mdx +++ b/website/docs/language/functions/plantimestamp.mdx @@ -36,13 +36,13 @@ The `plantimestamp` function is not available within the Terraform console. ``` ```terraform -check "terraform_io_certificate" { - data "tls_certificate" "terraform_io" { +check "placeholderplaceholderplaceholder_io_certificate" { + data "tls_certificate" "placeholderplaceholderplaceholder_io" { url = "https://www.placeholderplaceholderplaceholder.io/" } assert { - condition = timecmp(plantimestamp(), data.tls_certificate.terraform_io.certificates[0].not_after) < 0 + condition = timecmp(plantimestamp(), data.tls_certificate.placeholderplaceholderplaceholder_io.certificates[0].not_after) < 0 error_message = "terraform.io certificate has expired" } }