from typing import Mapping
from typing import Sequence


def _environment_from_map(env: Mapping[str, str]) -> Sequence[Mapping[str, str]]:
    """
    Generate a list of environment variable dictionaries for an ECS task container definition from a standard dictionary.
    """
    return [{"name": k, "value": v} for (k, v) in env.items()]