github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/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 # This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting 11 # 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it 12 # forwards compatible with 0.13.x code. 13 required_version = ">= 0.12.26" 14 } 15 16 variable "foo" { 17 description = "Some data to store as an output of this module" 18 type = string 19 } 20 21 output "foo" { 22 value = var.foo 23 }