blob: 4b1061fd1e8c0044185ad38011d2b336d7a12339 [file] [log] [blame]
# tfcoremock_complex_resource.complex:
resource "tfcoremock_complex_resource" "complex" {
bool = true
float = 123456789
id = "64564E36-BFCB-458B-9405-EBBF6A3CAC7A"
integer = 123456789
list = [
{
string = "this is my first entry in the list, and doesn't contain anything interesting"
},
{
string = <<-EOT
this is my second entry in the list
I am a bit more interesting
and contain multiple lines
but I've been edited
EOT
},
{
list = [
{
number = 0
},
{
number = 1
},
{
number = 3
},
{
number = 4
},
]
string = "this is my third entry, and I actually have a nested list"
},
{
set = [
{
number = 0
},
{
number = 2
},
]
string = "this is my fourth entry, and I actually have a nested set and I edited my test"
},
]
map = {
"key_four" = {
set = [
{
number = 0
},
{
number = 1
},
{
number = 3
},
{
number = 4
},
]
string = "this is my fourth entry, and I actually have a nested set"
},
"key_one" = {
string = "this is my first entry in the map, and doesn't contain anything interesting"
},
"key_three" = {
list = [
{
number = 0
},
{
number = 3
},
{
number = 1
},
{
number = 2
},
]
string = "this is my third entry, and I actually have a nested list"
},
"key_two" = {
string = <<-EOT
this is my second entry in the map
I am a bit more interesting
and contain multiple lines
EOT
},
}
number = 987654321
object = {
number = 0
object = {
bool = true
string = "i am a nested nested object"
}
string = "i am a nested object"
}
set = [
{
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
},
]
string = "this is my third entry, and I actually have a nested list"
},
{
set = [
{
number = 0
},
{
number = 1
},
]
string = "this is my fourth entry, and I actually have a nested set"
},
{
string = "this is my first entry in the set, and doesn't contain anything interesting"
},
{
string = <<-EOT
this is my second entry in the set
I am a bit more interesting
and contain multiple lines
EOT
},
]
string = "a not very long or complex string"
list_block {
string = jsonencode(
{
index = 0
}
)
}
list_block {
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
},
]
string = jsonencode(
{
index = 1
}
)
}
set_block {
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
},
]
string = jsonencode(
{
index = 1
}
)
}
set_block {
set = [
{
number = 0
},
{
number = 1
},
]
string = jsonencode(
{
index = 2
}
)
}
set_block {
string = jsonencode(
{
index = 3
}
)
}
}