Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created Jul 11, 2021
Embed
What would you like to do?
locals {
person = {
name = "foo"
age = 20
}
}
output "config" {
value = {
person = local.person
}
}
default:
terraform init
terraform validate
terraform apply -auto-approve
{
"version": 4,
"terraform_version": "1.0.2",
"serial": 1,
"lineage": "f8245285-8f6b-c9dd-174f-3132a2198c08",
"outputs": {
"config": {
"value": {
"person": {
"age": 20,
"name": "foo"
}
},
"type": [
"object",
{
"person": [
"object",
{
"age": "number",
"name": "string"
}
]
}
]
}
},
"resources": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment