github.com/terraform-modules-krish/terratest@v0.29.0/examples/terraform-backend-example/main.tf (about) 1 # --------------------------------------------------------------------------------------------------------------------- 2 # AN EXAMPLE OF HOW TO CONFIGURE A TERRAFORM BACKEND WITH TERRATEST 3 # Note that the example code here doesn't do anything other than set up a backend that Terratest will configure. 4 # --------------------------------------------------------------------------------------------------------------------- 5 6 terraform { 7 # Leave the config for this backend unspecified so Terraform can fill it in. This is known as "partial configuration": 8 # https://www.terraform.io/docs/backends/config.html#partial-configuration 9 backend "s3" {} 10 required_version = ">= 0.12" 11 } 12 13 variable "foo" { 14 description = "Some data to store as an output of this module" 15 type = string 16 } 17 18 output "foo" { 19 value = var.foo 20 }