random provider

HashiCorp's provider that generates random values, such as passwords or names, and keeps them stable in state.

In more detail

A random value is generated once, at create time, and then read back from state on every later plan, so it does not change each run. random_password marks its result as sensitive, but the value is still stored in state in plain text.

Example

output "admin_password" {
  value     = random_password.admin.result
  sensitive = true
}

Related terms

Taught in

References

Certification courses