resource "random_pet" "cat" {
prefix = "Mrs"
separator = "."
length = 1
}
output cat_name {
value = random_pet.cat.id
description = "Name of the cat"
}
If you run init, plan and apply - at the end you will get something like this:
Outputs:
cat_name = "Mrs.colt"