Skip to content

replace (Function)

Replace all occurrences of a substring.

Example Usage

locals {
  example_result = upper(
    # Function arguments here
  )
}

output "function_result" {
  description = "Result of upper function"
  value       = local.example_result
}

Signature

replace(str, old, new)

Arguments