You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/e2etest/testdata/terraform-provider-funcs/terraform-provider-funcs.tf

36 lines
822 B

# This test fixture is here primarily just to make sure that the
# terraform.io/builtin/terraform functions remain available for use. The
# actual behavior of these functions is the responsibility of
# ./internal/builtin/providers/terraform, and so it has more detailed tests
# whereas this one is focused largely just on whether these functions are
# callable at all.
terraform {
required_providers {
terraform = {
source = "terraform.io/builtin/terraform"
}
}
}
output "tfvarsencode" {
value = provider::terraform::encode_tfvars({
a = "👋"
b = "🐝"
c = "👓"
})
}
output "tfvarsdecode" {
value = provider::terraform::decode_tfvars(
<<-EOT
boop = "👃"
baaa = "🐑"
EOT
)
}
output "exprencode" {
value = provider::terraform::encode_expr([1, 2, 3])
}