terraform/testing/equivalence-tests/tests/local_provider_basic/main.tf
Liam Cervante 37b88b33ce
Rollout equivalence testing during Terraform releases and builds (#31928)
* add some basic equivalence tests and execute them in the build pipeline

* remove old file, now unused

* update terraform-equivalence-testing to v0.2.0

* add separate action

* make sure to read from hashicorp repo

* remove elevated github token where possible

* Don't need elevated token anymore

* update with official mock provider

* last change: don't need the authorization header for public repositories.
2022-11-24 14:00:08 +01:00

21 lines
300 B
HCL

terraform {
required_providers {
local = {
source = "hashicorp/local"
version = "2.2.3"
}
}
}
locals {
contents = jsonencode({
"hello" = "world"
})
}
provider "local" {}
resource "local_file" "local_file" {
filename = "output.json"
content = local.contents
}