blob: 64335c742e7542eb32b11441956065d26d69add5 [file] [log] [blame]
terraform {
required_providers {
tfcoremock = {
source = "hashicorp/tfcoremock"
version = "0.1.1"
}
}
}
provider "tfcoremock" {}
resource "tfcoremock_complex_resource" "complex" {
id = "64564E36-BFCB-458B-9405-EBBF6A3CAC7A"
number = 123456789.0
integer = 987654321
float = 987654321.0
string = "a not very long or complex string"
bool = true
list = [
{
string = "this is my first entry in the list, and doesn't contain anything interesting"
},
{
string = "this is my second entry in the list\nI am a bit more interesting\nand contain multiple lines"
},
{
string = "this is my third entry, and I actually have a nested list"
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
}
]
},
{
string = "this is my fourth entry, and I actually have a nested set"
set = [
{
number = 0
},
{
number = 1
},
]
}
]
object = {
string = "i am a nested object"
number = 0
bool = false
object = {
string = "i am a nested nested object"
number = 1
bool = true
}
}
map = {
"key_one" = {
string = "this is my first entry in the map, and doesn't contain anything interesting"
},
"key_two" = {
string = "this is my second entry in the map\nI am a bit more interesting\nand contain multiple lines"
},
"key_three" = {
string = "this is my third entry, and I actually have a nested list"
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
}
]
},
"key_four" = {
string = "this is my fourth entry, and I actually have a nested set"
set = [
{
number = 0
},
{
number = 1
},
]
}
}
set = [
{
string = "this is my first entry in the set, and doesn't contain anything interesting"
},
{
string = "this is my second entry in the set\nI am a bit more interesting\nand contain multiple lines"
},
{
string = "this is my third entry, and I actually have a nested list"
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
}
]
},
{
string = "this is my fourth entry, and I actually have a nested set"
set = [
{
number = 0
},
{
number = 1
},
]
}
]
list_block {
string = "{\"index\":0}"
}
list_block {
string = "{\"index\":1}"
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
}
]
}
list_block {
string = "{\"index\":2}"
set = [
{
number = 0
},
{
number = 1
},
]
}
set_block {
string = "{\"index\":0}"
}
set_block {
string = "{\"index\":1}"
list = [
{
number = 0
},
{
number = 1
},
{
number = 2
}
]
}
set_block {
string = "{\"index\":2}"
set = [
{
number = 0
},
{
number = 1
},
]
}
}