from typing import Dict
from typing import Any


def replace_parameters_from_string(s: str, parameters: Dict[str, Any]) -> str:
    """Replace parameters in string."""
    s = str(s)

    for key, value in parameters.items():
        s = s.replace("${{parameters." + str(key) + "}}", str(value))

    return s