Can anyone help me with this error? I’m following the example in the docs here
provider "random" {
version = "~> 2.2"
}
resource "random_password" "password" {
length = 16
special = true
}
resource "<any>_instance" "example" {
...
password = random_string.password.result
}
result:
Error: Reference to undeclared resource
A managed resource "random_string" "password" has not been declared in the
root module.