def replace_values(file_path, replacements):
    """Replace placeholders in a file using a dictionary of replacements."""
    with open(file_path, 'r') as f:
        content = f.read()

    for placeholder, replacement in replacements.items():
        placeholder_pattern = re.escape('{{' + placeholder + '}}')
        content = re.sub(placeholder_pattern, str(replacement), content)

    with open(file_path, 'w') as f:
        f.write(content)
Replace placeholders in a file using a dictionary of replacements.
scripts/vespa_eks/vespa_cluster.py