def taint()

in terranova/commands/binds.py [0:0]


def taint(path: str, address: str) -> None:
    """Mark a resource as not fully functional."""
    # Construct resources path
    full_path = SharedContext.resources_dir().joinpath(path)

    # Mount terraform context
    terraform = mount_context(full_path, import_vars=True)

    # Execute taint command
    try:
        terraform.taint(address)
    except ErrorReturnCode as err:
        raise Exit(code=err.exit_code) from err